I am trying to create a confirm notification that will display during a button click event (server side). What I want to do is:
1. Run the click event on postback
2. Check for existing data in a table
3. If data exists pause code and alert the user with the notification and give them the ability to cancel or overwrite the existing data.
4. Continue running the remainder of code.
I have tried the client "args.set_cancel(!window.confirm" on the client side, but this always fires first. I need something like this to pause execution of vb.net code, alert the user and then continue running the code. Is this even possible?
1. Run the click event on postback
2. Check for existing data in a table
3. If data exists pause code and alert the user with the notification and give them the ability to cancel or overwrite the existing data.
4. Continue running the remainder of code.
I have tried the client "args.set_cancel(!window.confirm" on the client side, but this always fires first. I need something like this to pause execution of vb.net code, alert the user and then continue running the code. Is this even possible?