Click to See Complete Forum and Search --> : trap Yes or No value from a message box on web page


sansircar
February 2nd, 2006, 11:25 AM
on a web page, i have a button, which when clicked, should open a message box with a message "Do you want to save??" and a "Yes" and a "No" button.Once the user selects any one of the two, the message-box should close.
in the click event of the button, i should be able to trap either of the two values selected by the user, as i have to different methods to call, depending on the selection of the user.

Please help.

HanneSThEGreaT
February 3rd, 2006, 04:24 AM
Have a look at these:
C#
http://www.codeproject.com/aspnet/NingLiangSimpleControl.asp

.NET
http://www.a1vbcode.com/snippet-3577.asp

But I think in your case, it would be better to build a seperate form (to act as a message box)