ASP.net MVC Validation Hook

后端 未结 2 1658
慢半拍i
慢半拍i 2021-02-04 04:56

I have the following view in ASP.net MVC 3:

@model Models.CreateProjectViewModel



        
2条回答
  •  轮回少年
    2021-02-04 05:51

    You can use the invalidHandler, I believe that is in jquery validation.

    invalidHandler Callback
    Callback for custom code when an invalid form is submitted. Called with a event object as the first argument, and the validator as the second.

提交回复
热议问题