I've got a couple APS.NET RequiredFieldValidators on my web page. I also have some custom javascript that raises a confirm message box that prompts for OK/Cancel based on what the user entered. This confirm message box is triggered when the user hits "Save".
My problem is that the confirm message box is showing up before the required fields have been checked for validation. I can have empty fields and the prompt for OK/Cancel still shows up. How can I run the client side validation before my other javascript? Ideally I would like to run the validation and not show my confirm message if it fails.
Anyone know how I can do this?
Thanks,
My problem is that the confirm message box is showing up before the required fields have been checked for validation. I can have empty fields and the prompt for OK/Cancel still shows up. How can I run the client side validation before my other javascript? Ideally I would like to run the validation and not show my confirm message if it fails.
Anyone know how I can do this?
Thanks,