开发者

Changing trigger event of MVC 2 client validation

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜