In my project, I have implemented an ASP button which triggers a JavaScript confirm message on click. The issue arises when I realize that I want this alert to pop up only once all client-side validations have been met.
Any suggestions on how I can go about doing this effectively? My belief is that I may need to enforce page-level validation from the client side beforehand, and then proceed to showcase the confirmation dialog if everything checks out.