How to dreate a Message box with OK and Cancel button. And how to verify which button is pressed
How to add text boxess inside Message box.
thanks and regard
sankar
![]() |
-2 |
![]() |
I had the same problem myself. It became obvious to me that client side pop-ups, alerts etc... weren't gonna do the job.
So I used this:
http://www.codeproject.com/aspnet/Web_Message_Box.asp
very easy to use and does the job!!
![]() |
1 |
![]() |
if a plain javascript alert is what you need, then it is simply:
var res = confirm("Are you sure?");
res is true if user cliked OK and false if they clicked cancel.
if you need to use that to control execution of a postback, you can add as client-side onclick:
return confirm('Are you sure?');
example:
/tharn
![]() |
1 |
![]() |
Just answered this one for someone else...
http://forums.asp.net/p/1145040/1855121.aspx#1855121
Visit my blog
![]() |
1 |
![]() |