I have a form containing both C开发者_如何学PythonustomValidators and RequiredFieldValidators.
The Custom Validation doesn't fire until all of the requiredFieldValidators have passed.
Can someone tell me how to get them to validate at the same time? I want all the validation messages to show when no data is input.
you need to create a javascript function and hook up the customvalidators via OnClientValidate, so that it will fire client side with the requiredfieldvalidators.
Check out: http://msdn.microsoft.com/en-us/library/f5db6z8k(VS.71).aspx
精彩评论