How to check from onclick if RequiredFieldValidator failed?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,

I have a OnClientClick script assigned to a button. From the script, I'd
like to check if RequiredFieldValidator attached to a textbox on the page
has failed. The Page_IsValid works fine with - for example - regex
validator but it does not work with the required field validator.

Any suggestions will be appreciated.
Thanks,
Bogdan


.


Quantcast