Posted: 3/2/2009
hi ...i want a message box into asp.net which will be returning values when press yes or no ? i were done it by using java script alert or confirm but problem is that i m not able to use the return values when clicking ok or cancel..if any idea plz send code rather then alert and confirm...of java script.?waiting for reply?
Hi,
Since ASP.NET is state-less, it is not easy to use pure JS to communicate with the server side code. You will need to create your won controls using server side code as shown in these articles:
http://www.dnzone.com/go?813
http://www.codeproject.com/KB/webforms/NingLiangSimpleControl.aspx
Hope this helps,
Vivek
Posted: 4/7/2009
You can use jquery impromptu.
URL: http://trentrichardson.com/Impromptu/index.php
(If you can play well, you can use javascript confirm box also.)
Posted: 4/15/2009
ashwini said: want a message box into asp.net which will be returning values when press yes or no ?
want a message box into asp.net which will be returning values when press yes or no ?
If you need to have a Customized MessageBox in ASPNET then you can create UserControl as your MessageBox..
See the following links below for demo:
ASP.NET Popup Message Box User Control
ASP.NET Messagebox - Server and Client
Posted: 3/6/2010
Please look over the last example at here:
http://www.ericmmartin.com/projects/simplemodal-demos/