Top "Asp.net-mvc-5.1" questions

ASP.

ASP.NET MVC 5 error handling

We want to handle 403 errors, 404 errors, all errors due to a MySpecialDomainException and provide a default error page for all …

c# asp.net-mvc error-handling asp.net-mvc-5 asp.net-mvc-5.1
The type 'Expression<>' is defined in an assembly that is not referenced

In ASP.NET MVC 4.5.2 Framework. after typing @Html.LabelFor() or @Html.EditorFor() in view I'm getting Error: The type 'Expression&…

asp.net-mvc asp.net-mvc-5.1
Html.EnumDropdownListFor: Showing a default text

In my view I have a enumdropdownlist (a new feature in Asp.Net MVC 5.1). @Html.EnumDropDownListFor(m => m.SelectedLicense,…

c# asp.net-mvc drop-down-menu asp.net-mvc-5.1
Displaying DateTime picker instead of Date picker in ASP .NET MVC 5.1/HTML 5 specific

I write application in ASP .NET MVC 5.1 I have a field: [DisplayName("Date of Birth")] [DataType(DataType.Date)] public DateTime …

c# razor datepicker asp.net-mvc-5.1
How to create ApplicationUser by UserManager in Seed method of ASP .NET MVC 5 Web application

I can create users in the old way: var users = new List<ApplicationUser> { new ApplicationUser{PasswordHash = hasher.HashPassword("…

c# .net asp.net-identity seed asp.net-mvc-5.1
Request.Files.Count always 0 while uploading image in MVC 5

I have a Post controller on a model with some string fields and an image. Exact identical code works on …

asp.net-mvc http-headers asp.net-mvc-5 asp.net-mvc-5.1 enctype
How do I properly register AutoFac in a basic MVC5.1 website?

AutoFac has recently been updated for MVC 5.1 but at the time of writing I find that the documentation is lacking (…

c# dependency-injection asp.net-mvc-5 autofac asp.net-mvc-5.1
Asp.net razor textbox array for list items

I can't find or figure out how to take a list of items (cupcakes) and display them in razor with …

c# asp.net razor asp.net-mvc-5.1
MVC5 and Bootstrap3: Html.EditorFor wrong class? How to change?

I just noticed that MVC 5 is using a different class for input fields when using EditorFor. I think its from …

twitter-bootstrap-3 asp.net-mvc-5 asp.net-mvc-5.1