Questions tagged as 'asp.net-mvc'

3
answers

Generate PDF with Asp.Net MVC

Hello, in my application the reports are generated in Html, I would like to know a way to generate these Html reports in PDF.     
asked by 08.10.2015 / 21:19
2
answers

How to print in dot matrix printer on the client with a web application?

I have an application made in C # MVC with a routine to print plain text on the default printer. The RawPrinterHelper.SendStringToPrinter method that is described in this article has been used. Printing normally occurs when I run the ap...
asked by 23.10.2015 / 22:43
1
answer

Accessing data stored in cookies?

At login, I store user information logged into a cookie (name, password, etc ...) How do I access this cookie and retrieve information from it? For example, I want the name of the logged in user to appear in the upper bar, my logic would h...
asked by 23.10.2015 / 19:02
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

How to get Json for Ajax in .html?

Suppose I have a .html file that I just created in notepad with a Ajax code where I want to get the data generated by this application . I made a code here, and when I put a breakpoint in the application I realize that the...
asked by 08.06.2015 / 00:23
1
answer

Change column names of tables created by Asp.Net Identity

My question is simple, but I can not solve it. Is it possible to change the name of the columns in the AspNetUsers table that Identity creates in the database? Another question is, how to add new fields in this table, and one of them will b...
asked by 21.09.2016 / 06:01
2
answers

Working with Seed Method + FK

I'm finding it difficult to work with the Seed method, since I registered the state, and then wanted to register the cities, and then I can not reference the state in the city, what could I do? I believe you have a solution. Seed Meth...
asked by 29.10.2016 / 00:07
2
answers

Regex time greater than 00:00

I am developing a validation regex using System.ComponentModel.DataAnnotations and RegularExpression of asp.net mvc C #, in this regex it is necessary to validate time duration without limits in hours and the time must be greater t...
asked by 28.12.2014 / 18:57