Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 02, 2010 05:24 PM by NickNelson
Member
25 Points
5 Posts
Dec 02, 2010 05:24 PM|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.
Nick
mvc 3 rc
NickNelson
Member
25 Points
5 Posts
MVC 3 DataAnnotations DisplayName Error
Dec 02, 2010 05:24 PM|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 POSTmvc 3 rc