changing trigger event of MVC 2 client validation

Posted by Muhammad Adeel Zahid on Stack Overflow See other posts from Stack Overflow or by Muhammad Adeel Zahid
Published on 2010-05-03T06:55:01Z Indexed on 2010/05/03 6:58 UTC
Read the original article Hit count: 323

Filed under:

Hi Everyone

i m developing a website using .NET 3.5 with MVC 2.0. For server side validations i m using ComponentModel.DataAnnotations. these validations 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. any suggestions in this regard are highly appreciated

regards

© Stack Overflow or respective owner

Related posts about asp.net-mvc-2