tate Posted February 18, 2005 Posted February 18, 2005 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. Quote
Diesel Posted February 18, 2005 Posted February 18, 2005 if you include runat="server" to the script tag, you can call whatever functions you like. Quote
tate Posted February 19, 2005 Author Posted February 19, 2005 I'm aware of that. However, that doesn't explain how to use JavaScript to determine the codebehind page to follow. Quote
eramgarden Posted February 19, 2005 Posted February 19, 2005 this is an example: http://davidhayden.com/blog/dave/archive/2004/03/16/178.aspx Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.