I am facing an issue with my asp.net application which has basic CRUD functionality. I have set up several asp.net validators on a customer details capture page to ensure required fields are filled out. Additionally, I have added a JS confirm box to the save button on the form. The problem arises when a user leaves required fields empty and clicks the save button - the JS confirm box appears first. Upon clicking "ok", the save method is called successfully, and only then do the asp.net validators kick in to display that information is missing.
Is there a way for me to make the validators check before the JS box pops up?