Is there a method to stop validators from being evaluated if a previous validator is found to be not valid - at a control level?
For example, if I create a text box with a RequiredFieldValidator
, a RegularExpressionValidator
and a custom validator, I do not want the custom validator to be evaluated if the RequiredFieldValidator
or RegularExpressionValidator
have already determined that the input is invalid.
Specifically, in this case, the custom validator does not have client side support, but I would like to prevent the postback if no data is entered (using the RequiredFieldValidator
) rather than having the postback take place.