M
Mad Scientist Jr
To use a simple example, if I have a web form with two textboxes
Textbox1 and Textbox2, two Required Field Validators Validator1 (which
validates Textbox1) and Validator2 (for Textbox2), and two buttons
Button1 and Button2, can I specify that Validator1 should only
validate if Button1 is pressed, and Validator2 should only validate if
Button2 is pressed? If Button2 is pressed, we do not need Textbox1,
and if Button1 is pressed we do not need Textbox2. Note this is a
simlified example, it would not be possible to just have Textbox1 and
two buttons - in actuality there are many textboxes, each with
validators for data type and range as well as required fields, and
many buttons. I just want to know if this kind of thing is possible or
what is done in such a case. Currently validation is done in the
codebehind. Thanks.
Textbox1 and Textbox2, two Required Field Validators Validator1 (which
validates Textbox1) and Validator2 (for Textbox2), and two buttons
Button1 and Button2, can I specify that Validator1 should only
validate if Button1 is pressed, and Validator2 should only validate if
Button2 is pressed? If Button2 is pressed, we do not need Textbox1,
and if Button1 is pressed we do not need Textbox2. Note this is a
simlified example, it would not be possible to just have Textbox1 and
two buttons - in actuality there are many textboxes, each with
validators for data type and range as well as required fields, and
many buttons. I just want to know if this kind of thing is possible or
what is done in such a case. Currently validation is done in the
codebehind. Thanks.