Html.DisplayFor not posting values to controller in ASP.NET MVC 3

you’ll need to add a

@Html.HiddenFor(m => m.EmailAddress)

DisplayFor won’t send anything in POST, it won’t create an input…

By the way, an

@Html.HiddenFor(m => m.Id) // or anything which is the model key

would be usefull

Leave a Comment