P
Paul
Hi,
I hope somebody can help me with the following. (I have tried
searching for a solution on the newsgroups but nothing is quite what I
need. Feel free to point me in the direction of anything I may have
missed though.)
I have a form with 2 text boxes, two list boxes and 2 buttons (A & B).
Both buttons must perform some validation but they differ in their
extent. Button A must ensure that a date has been entered in both text
fields and that at least one item has been selected in one of the list
boxes (it is always the same one). Button B however must ensure that a
date has been entered in both text fields and that at least one item
has been selected in each list box. Button A serves to populate the
other list box based on the values in the text boxes and the selected
item in the list box. Button B serves to submit the form when it is
totally complete.
I have added the necessary validation controls (i.e. combination of
RequiredFieldValidators, RangeValidators and CompareValidators) to my
form so that all fields are validated when Button B is clicked. What
can I do so that if Button A is clicked that only the text boxes and
one list box is validated. The EnableClientScript property of each
validation control is true so the form is validated client side and
this is something I'd like to maintain. I'm using a validation summary
control to display error messages.
Any help would be appreciated.
TIA
Paul
I hope somebody can help me with the following. (I have tried
searching for a solution on the newsgroups but nothing is quite what I
need. Feel free to point me in the direction of anything I may have
missed though.)
I have a form with 2 text boxes, two list boxes and 2 buttons (A & B).
Both buttons must perform some validation but they differ in their
extent. Button A must ensure that a date has been entered in both text
fields and that at least one item has been selected in one of the list
boxes (it is always the same one). Button B however must ensure that a
date has been entered in both text fields and that at least one item
has been selected in each list box. Button A serves to populate the
other list box based on the values in the text boxes and the selected
item in the list box. Button B serves to submit the form when it is
totally complete.
I have added the necessary validation controls (i.e. combination of
RequiredFieldValidators, RangeValidators and CompareValidators) to my
form so that all fields are validated when Button B is clicked. What
can I do so that if Button A is clicked that only the text boxes and
one list box is validated. The EnableClientScript property of each
validation control is true so the form is validated client side and
this is something I'd like to maintain. I'm using a validation summary
control to display error messages.
Any help would be appreciated.
TIA
Paul