开发者

MVC: On partial page start validation from JS without postback

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


I originally posted a link to ASP.NET MVC 2 Custom Validation but I realized that I missed part of the question... It does appear that a few insights are present in the post titled Combining JQuery Form Validation and Ajax Submission with ASP.NET.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜