Here's some server side code that uses javascript to display a confirmation
message.
myDeleteButton.Attributes.Add("onclick", _
"return confirm('Are you sure you want to delete?');")
In this example, the Delete button will post back only if the person
confirms they want to delete. Otherwise your server code is never called in
response to the button click.
Here's a more detailed analysis of your options, including a free control
that can handle many of the options for you.
http://SteveOrr.net/articles/ClientSideSuite.aspx
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"csgraham74" <cs********@hotmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
Basically i have a piece of javascript that calls a function to call a
confirm box on screen.
onclick= if(sub_ProceedMsg()){}
basically what i want to do is to stop the serverside event from the
same button if i click no in my javascript confirm box.
is this possible ????
if not is there a better way to do this ???
i have to display a message on screen and get a response ( Yes or no )
from the user before i can proceed.
thanks in advance
C