Top "Asp.net-mvc-5.2" questions

Refers to the 5.2 version of the ASP.

Error Invalid option '6' for /langversion; must be ISO-1, ISO-2, 3, 4, 5 or Default

I am trying to target .NET 4.6 and also take advantage of the latest C# version by changing the C# language …

c# .net asp.net-mvc-5.2 .net-4.6
MVC 5 RadioButtonFor enum, the default enum value zero is always selected?

Say I have an enum: public enum OrderStatusType { Waiting = 0, Pending, Picked, Shipped, } I generated the radio button list as follows. @…

radio-button html-helper asp.net-mvc-5.2
What is the latest ASP .NET MVC version?

I was trying to check the latest ASP MVC version, but I got really confused. I was able to understand …

asp.net-mvc-5 asp.net-mvc-5.2
An exception of type 'System.NullReferenceException' occurred in App_Web_***.dll

This is my code @if (ViewBag.last5Articles != null) { List<Article> articles = ViewBag.last5Articles; foreach (var article …

c# asp.net-mvc asp.net-mvc-5.2
About Enum and DataAnnotation

I have this Enum (Notebook.cs): public enum Notebook : byte { [Display(Name = "Notebook HP")] NotebookHP, [Display(Name = "Notebook Dell")] NotebookDell } …

c# enums data-annotations asp.net-mvc-5.2 displayattribute
how to use enum with DescriptionAttribute in asp.net mvc

I am new to asp.net MVC. I am trying to use dropdown control on my view page, which populates …

c# asp.net enums asp.net-mvc-5.2 enumdropdownlistfor
How to show please wait message on form post in MVC 5 till the controller returns view

In MVC 5.2.2,I need to process data by sending the values from form to web-service.While doing so it takes …

asp.net-mvc asp.net-mvc-4 razor asp.net-mvc-5.2
PerRequestLifetimeManager can only be used in the context of an HTTP request

I have a MVC application that uses Unity as its IoC container and have multiple services defined in my application …

c# unity-container asp.net-mvc-5.2
ASP.NET MVC 5.1 C# OWIN facebook authentication or login ask for birthday, likes, public profile, phone number

I have seen many posts for facebook authentication , either those are old or not working correctly as it should be. …

c# asp.net-mvc facebook-login owin asp.net-mvc-5.2
Asp.net Identity : User.Identity.GetUserId() is always null and User.Identity.IsAuthenticated is alway false

See my code below: var result = await SignInManager.PasswordSignInAsync(model.UserName, model.Password, model.RememberMe, shouldLockout: false); switch (result) { case …

asp.net-mvc asp.net-mvc-5.2