Last post Dec 02, 2010 01:24 PM by NickNelson
Dec 02, 2010 01:24 PM|NickNelson|LINK
I found a change in behaviour from MVC2 to MVC3 RC relating to DisplayName.
[DisplayName("")] worked fine in MVC2 but in MVC3 it produced the following error, but only when, in an online form, the POST
method was invoked (the GET displayed with no problems):
Server Error in '/' Application.Value cannot be null.Parameter name: value
The fix is easy just change [DisplayName("")] to [DisplayName(" ")] with a space.
mvc 3 rc