D
dotpro2008
I have creates a webform with multiple textboxes and associted them with some
validation controls (like requiredfieldvalidator).
There is command button also. There is some code written in the click event
of the the button. I want that when someclicks that button then the code
should only execute if the all the textboxes are validation.
Right now what is happening is the even though validation summary shows that
textboxes are not validated (e.g. missing required values) but still the
click events triggers.
What statement should I write in click event of button so that it can only
run the code when all the fields are validated.
Thanks,
validation controls (like requiredfieldvalidator).
There is command button also. There is some code written in the click event
of the the button. I want that when someclicks that button then the code
should only execute if the all the textboxes are validation.
Right now what is happening is the even though validation summary shows that
textboxes are not validated (e.g. missing required values) but still the
click events triggers.
What statement should I write in click event of button so that it can only
run the code when all the fields are validated.
Thanks,