Questions tagged as 'c#'

1
answer

How to implement token to reset password?

I have an Asp.Net MVC project that I created without template (from scratch). I would implement a function to recover password, but I'm not sure where to start. What method is used to generate a secure Token that expires in a determined ti...
asked by 23.09.2015 / 16:00
1
answer

Send via FormCollection of monetary values

I need to send to a method in the Controller the values filled in the Payment_Value column as shown below: HomeWhenclickingthegreenbutton,sendviapost,thevaluesofthelistbelowthatgeneratedthetable:@foreach(variteminModel.vmListPagamentos){<...
asked by 24.09.2015 / 23:03
1
answer

Security Attributes

A friend asked me a way to give more security in your application, to avoid a type of "url injection", ie someone manually type a "hooked" url and circumvent the system. Of course, there are several types of encryption that could help, but the i...
asked by 21.10.2015 / 20:04
1
answer

Removing part of a string - C # [duplicate]

How can I remove my last characters from a string until I reach a certain character? For example: string url="www.google.com/test"; I needed to remove the test pad until I got the "/" character. I would like to play the rest in another v...
asked by 20.09.2015 / 21:39
3
answers

Change characters within a string, in a string

Simple question: I just want to replace the A characters inside the " " field and not what's outside with a B, eg aaaaaaaaaa"aaaa"aaaaaaaaaaaaaa aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa aaaaa"aaaaaaaaaa"aaaaaaaaaaaaa look like this: aaaaaaa...
asked by 16.06.2015 / 01:58
1
answer

Catching all files with the name started by something in a directory

I want to get all files started by something, for example, "javaw" in a certain directory. Thanks for the time.     
asked by 06.09.2015 / 00:51
1
answer

Correct use of async and await in Asp.Net

I am creating an asynchronous method for sending Emails from the opening or changing of the object, but when calling the method of sending mail I have to put await in front and the return of the method has to be async Task, do this in the contro...
asked by 03.09.2015 / 20:24
1
answer

Method that recognizes the touch of the screen of CELLULAR C #

I'm doing an augmented reality application with unity and vuforia. I created a class that makes the ball jump, now I need to insert this movement of the ball to a touch on the screen of the cell phone ... Does anyone know of any method that iden...
asked by 11.09.2015 / 17:18
1
answer

How to get attribute of a generic type object?

I'm having trouble retrieving an object to get a specific attribute. I want to override the Equals method in my class, to compare if the title of the objects are identical. In this case, it does not matter if the type and the other a...
asked by 18.04.2016 / 04:55
1
answer

How to format Numbers in Excel programmatically in C #

I'm setting up a C # Requests report, I'm using the Microsoft.Interop.Excel library and I'm facing a problem: It is necessary to include the Order number in this report and when it is presented in Excel it comes in Exponential Format:...
asked by 12.04.2016 / 17:52