I have a text box for input of a date. It has three validators:
Required Field - to make sure it's completed
Compare - setup to check the data type
Compare - setup to check against a limit
The second two, as expected, do not fire if the field is empty.
If the user keys a stupid date, such as 01/19/0010 the second validator fires as expected. However, the third validator also fires because the "date" is earlier than the specified limit.
Is there any way to prevent the third validator firing, if the second validator has fired (ie once one validator has fired on a particular control, no more validators on that control will fire)?
If not, then I guess I'm either going to need to write my own third validator which ignores invalid dates, just like it will ignore an empty field (assuming that the second validator will always be there to take care of invalid formats); or again my own validator but effectively combining the checks of validators two and three (ie checking for format first and then against the limits).
I can't be the first person to try and do this. Anyone?
View Complete Post