R
Rigs
Hi,
I have a textbox with a Custom Validator that utilizes the OnServerValidate
method for that textbox. This works fine, however the method only executes
when data exists in that textbox after the Submit button is clicked. If I
click the submit button and no data exists in the textbox, the
OnServerValidate method does not fire.
I'd like the OnServerValidate method to either execute every time the Submit
button is clicked. I am also open to suggestions on an alternative method
to validate the control. I can not utilize a RequiredFieldValidator because
data in other textboxes in the web form determine if the textbox in question
should contain data or not. It's a little complicated, hence the use of the
Custom Validator.
If anyone has any suggestions, I'd love to hear them.
Thanks,
-Rigs
I have a textbox with a Custom Validator that utilizes the OnServerValidate
method for that textbox. This works fine, however the method only executes
when data exists in that textbox after the Submit button is clicked. If I
click the submit button and no data exists in the textbox, the
OnServerValidate method does not fire.
I'd like the OnServerValidate method to either execute every time the Submit
button is clicked. I am also open to suggestions on an alternative method
to validate the control. I can not utilize a RequiredFieldValidator because
data in other textboxes in the web form determine if the textbox in question
should contain data or not. It's a little complicated, hence the use of the
Custom Validator.
If anyone has any suggestions, I'd love to hear them.
Thanks,
-Rigs