JavaScript confirm to codebehind

tate

Centurion
Joined
Nov 10, 2003
Messages
116
Is it possible to use a JavaScript confirm dialog box to determine if some codebehind will be processed? Prior to deleting a record from a database I would like to prompt the user to confirm their intent and include the particular database record information in a message box. If they select "OK" then the codebehind function is processed. If they select "NO" then they are returned back to the originating web form.
 
if you include runat="server" to the script tag, you can call whatever functions you like.
 
I'm aware of that. However, that doesn't explain how to use JavaScript to determine the codebehind page to follow.
 
Back
Top