ASP.NET MVC2 - How to have a non-required field?

Posted by user314963 on Stack Overflow See other posts from Stack Overflow or by user314963
Published on 2010-04-12T22:06:16Z Indexed on 2010/04/12 22:13 UTC
Read the original article Hit count: 306

Filed under:
|
|

Hi there

All my fields seem to be required by default as I am getting a server-validation message "enter title" in my validation summary box. How do I make this field not required? I havent declared anything explicitly in the ViewModel & the front-side code is simply Html.DropDownListFor

Any help would be really appreciated~!

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc2