Reputation: 10581
I want to do an ajax-style form validation (with green checkmarks showing when input is valid) for my asp.net form.
For two fields I use a custom validator and use jquery ajax to validate the values. For these validators, I piggy-back on the client-side validation in order to show a progressbar while the ajax call is waiting for a response and a green checkmark, if the result is ok.
For the other inputs I have requiredfiled and regex validators, and I would rather not turn them all in to custom validators. Is there a client-side event called on validation for non-custom validators?
Upvotes: 1
Views: 334
Reputation: 51514
You need to alter the client side evaluationfunction
property on the validators
Documentation : http://msdn.microsoft.com/en-us/library/aa719700(VS.71).aspx
Tutorial : http://blogbaris.blogspot.co.uk/2011/03/creating-custom-validator-control-in.html
Upvotes: 1