I need to be able to do the following:
Displaying a confirm box before the form submission process has begun is easy but it seems to be problematic when you try and do it after some code has already processed in the codebehind.
Any ideas?
- Perform some operations in a Button click event
- Based on the results of a database query popup a javascript confirm box
- If the user clicks OK then continue to submit the page
- If the user clicks "Cancel" then DO NOT submit the page and in fact return to the original page.
Displaying a confirm box before the form submission process has begun is easy but it seems to be problematic when you try and do it after some code has already processed in the codebehind.
Any ideas?