开发者

Changing trigger event of MVC 2 client validation

开发者 https://www.devze.com 2022-12-28 18:08 出处:网络
I\'m developing a website using .NET 3.5 with MVC 2.0. For server side validations I\'m using ComponentModel.DataAnnotations. These validatio开发者_StackOverflow社区ns are reflected to client side by

I'm developing a website using .NET 3.5 with MVC 2.0. For server side validations I'm using ComponentModel.DataAnnotations. These validatio开发者_StackOverflow社区ns are reflected to client side by html helper's method Html.EnableClientValidation().

This scheme works fine for except that it triggers the validation on blur event of each form control whereas I want to have it triggered on form's submit event.

0

精彩评论

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

关注公众号