MVC: On partial page start validation from JS without postback

Posted by dwilliams459 on Stack Overflow See other posts from Stack Overflow or by dwilliams459
Published on 2010-04-07T19:10:16Z Indexed on 2010/04/07 19:13 UTC
Read the original article Hit count: 449

How do I start validation from the client/javascript using the MS MVC Validation library?

Using MS ASP.Net MVC, I have a page with a PartialView in a modal dialog (change password). When the user selects 'save', I need to validate this on the client side without a full page postback. I am able in JS to post and refresh the partialView, however I am unable to start client validation. The MS MVC validation starts on postback (Input type='submit'). How can I start this in JS?

Validation on the full page with postback works. Thanks, d

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2-validation

Related posts about asp.net-mvc-2