Forum Moderators: open
I have a question that I cannot seem to find any information on.
I am coding in ASP and JavaScript. I pass the form information to another page where I do some validation by comparing the form text fields with database records thorough ASP. If certain conditions fail I need to display a warning(confirm) box, to make the user aware. If the user clicks "ok" then I want the rest of the page code to execute. However if the user clicks "cancel" then I want redirection to the previous page without the rest of the ASP code executing.
Does anyone know if this is possible? Or does the JavaScript only execute after the ASP (server side) has been run. Any suggestions on how I could do this would be much appreciated.
Thanks,
Sangarius