How to Validate with ASP.NET MVC - Model State is Invalid When Form Submitted

Posted by DaveDev on Stack Overflow See other posts from Stack Overflow or by DaveDev
Published on 2010-04-28T10:36:48Z Indexed on 2010/04/28 10:43 UTC
Read the original article Hit count: 258

Filed under:
|

I am trying to validate a form in MVC.

I add custom errors to model state and get it as invalid when form is submitted. When the view is displayed it doesn’t show validation messages nor validation summary. Can anyone please let me know what am I doing wrong or point me in the right direction if there is any other way of validating?

Thanks

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about validation