I have some text fields and a button on my aspx. The text fields are validated using required field validators. On button i have set OnClientClick() event to do certain JS operations.
The problem here is that, the JS function is called before validations are completed. That is i need to validate first and then call js on client click event of button.
Can anybody help me?
Thanks for sharing your time.
You could do the client side validation manually:
Remember to do whatever checking server side as well since you javascript could be manipulated and/or bypassed.