Questions tagged as 'asp.net-mvc-5'

3
answers

ASP.NET MVC5 - Asynchronous Methods on the Controller

I'm developing an MVC layer for an ASP.NET system written initially in WebForms. It does not use EntityFramework, so a good part of the system I had to work out a homemade solution. In order to use Ajax's asynchronous methods with the MVC5 Co...
asked by 26.02.2014 / 20:14
2
answers

Only parameterless constructors and initializers are supported in LINQ to Entities - Asp.Net MVC

I'm developing an application that manages courses. The student, when entering the inscription screen and clicking on the "enrollment" button, is associated to a course, that is, is enrolled. So far so good, only when I try to check if he is alr...
asked by 06.06.2015 / 18:17
1
answer

Database changes with ASP.NET MVC 5

I'm starting some independent projects using ASP.NET MVC 5 with Entity Framework, and more learning from technology. And at the moment I had a great doubt. I used the generated code through a connection to the database, creating an ADO.NET En...
asked by 02.09.2014 / 03:12
1
answer

Working with Currency (decimal)

I'm working on a project where I had to use decimal for Currency field. As the American standard and different from the Brazilian soon had some difficulties. I found some examples of how to deal with it, but I did not get much succe...
asked by 08.11.2014 / 03:18
2
answers

Progress bar on file upload and information registry

I'm developing a project, where I use upload files, as well as an information registry. Both the file and the information are registered in the same form. So far so good, but it's usually that when there is a larger file, it takes about 20 to 30...
asked by 25.07.2015 / 21:23
2
answers

Glyphicons with error when publishing in IIS

I'm developing an application with
asked by 10.07.2015 / 16:46
1
answer

Block files in asp.net mvc folder

I have a folder named "app" I want to block access to all files if the user is not logged in. I tried this way: <location path="app"> <system.web> <authorization> <deny users="?"/> </authorizat...
asked by 15.08.2014 / 01:26
1
answer

How to List Users with Asp.Net MVC 5

I'm using Visual Studio 2013, I'm creating a new Asp.NET Web Application project using MVC and "Individual User Account" authentication. I would like to know how to list all registered users. Models: IdentityModel using Microsoft....
asked by 25.03.2014 / 15:01
3
answers

Validate Datetime on client

I have a model with a property of type DateTime : [DisplayFormat(ApplyFormatInEditMode = true, DataFormatString = "{0:dd/MM/yyyy}")] [DataType(DataType.Date, ErrorMessage="Data em formato inválido")] public DateTime? Date {get;set;} A...
asked by 31.12.2014 / 02:56
4
answers

JavaScript function for leading zeros with MVC 5

I have a loop inside my cshtml file. This loop has a i variable and I use it to compose a name according to its position in the loop, type txtNome1 , txtNome2 , txtNome3 , and so on. I need to make the variable be com...
asked by 13.03.2014 / 21:32