Forums

ASP

This topic is locked

MSGBox after update or insert

Posted 07 Jun 2003 00:10:52
1
has voted
07 Jun 2003 00:10:52 Phil Grimpo posted:
After I do a record insert or update, I want a MessageBox alert to pop-up just telling the user that the update was successful. I've tried using VB MsgBox with no luck (trying to call it before the redirect in the MM behavior).

Any ideas on how this can be done?

Phil Grimpo
Executive Director
Inspirmedia

Replies

Replied 09 Jun 2003 09:18:46
09 Jun 2003 09:18:46 Vince Baker replied:
The most common method of doing this is to redirect the user to a confirmation page but if you want a pop up instead try redirecting the user to a page after update and add this to the body tag in the code:

<body onLoad="alert('Your details have been saved')">

Regards
Vince

Visit my home: www.chez-vince.com

VBScript | ASP | HTML | SQL | Oracle | Hosting

Edited by - bakerv on 09 Jun 2003 16:46:51
Replied 09 Jun 2003 10:21:56
09 Jun 2003 10:21:56 Lee Diggins replied:
Hi Phil

Just adding to Vinces' comments. Calling the VB MsgBox will results in a permissions error as it will be trying to display on the web server and not at the client.

Digga

Sharing Knowledge Saves Valuable Time!!!

Reply to this topic