Top "Asp.net-mvc-5" questions

ASP.

Asp.NET Identity 2 giving "Invalid Token" error

I'm using Asp.Net-Identity-2 and I'm trying to verify email verification code using the below method. But I am getting …

c# asp.net asp.net-mvc-5 asp.net-identity-2
IntelliSense in Razor files (.cshtml) stopped working

Intellisense does not work in razor files: In my web.conifg file (in the Views folder) is apparently correct: <?…

razor asp.net-mvc-5
MVC 5 Seed Users and Roles

I have been playing about with the new MVC 5, I have a few models, controller and views setup using code …

asp.net-mvc asp.net-mvc-5 entity-framework-migrations seeding
What is ASP.NET Identity's IUserSecurityStampStore<TUser> interface?

Looking at ASP.NET Identity (new membership implementation in ASP.NET), I came across this interface when implementing my own …

asp.net asp.net-mvc asp.net-mvc-5 asp.net-identity
Using JSON.NET to return ActionResult

I'm trying to write a C# method that will serialize a model and return a JSON result. Here's my code: …

c# serialization json.net asp.net-mvc-5
What is readonly for in a disabled TextBoxFor?

I have two different ways to use a DISABLED TextBoxFor, which is: @Html.TextBoxFor(u => u.Visibilidade, new { disabled = "…

asp.net-mvc-5 html.textboxfor
Set default global json serializer settings

I'm trying to set the global serializer settings like this in my global.asax. var formatter = GlobalConfiguration.Configuration.Formatters.JsonFormatter; …

c# json asp.net-web-api json.net asp.net-mvc-5
ASP.NET Identity with EF Database First MVC5

Is it possible to use the new Asp.net Identity with Database First and EDMX? Or only with code first? …

asp.net asp.net-mvc asp.net-mvc-5 ef-database-first asp.net-identity
MVC5 view drop down list

In a C# MVC5 Internet application view, how can I display a dropdown list for a user to select a …

c# asp.net-mvc-5 html.dropdownlistfor asp.net-mvc-views
How can I use placeholder attribute with Html.EditorFor?

I want to use the placeholder attribute in the Html.EditorFor so I did just like in the first answer: …

asp.net html razor asp.net-mvc-5 placeholder