If you don't mind spending a little money, I found this handy, Submit
Confirmer
http://www.silkwebware.net/products/...3-60b9d1fac9c2
Basically a custom .NET control where you assign the control to confirm and
a message, and it pops up the message just like the Javascript type. You can
set the message dynamically as well, and use \n to make breaks, just like
Javascript.
--
Kenneth S. McAndrew
Software Developer, Information Concepts
km*******@infoconcepts.com
"Thrud" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
I have a button (runat=server) with some VB code attached
to its on click event which does data updates.
I now want to add a warning to the user prompting them
whether they really want to perform the update. If they
say Ok then the update proceeds, otherwise it is cancelled.
How is the best way to do this? As far as I see the only
way to get the prompt is to use the JScript Confirm
function but to use this I need to turn off the
runat=server flag which makes the button disappear.
Any help would be much appreciated, Thrud