Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: How to use Messagebox value


Message #1 by "B.VENKATESHWAR RAO" <BVRAO9@H...> on Mon, 9 Dec 2002 08:29:15
Hi All,
thanks for your help in advance
my problem is

How can i use messagebox to confirm save record
example:

a= messagebox("Are you sure to save",YesNoCancel);
if a= Yes then
......
elseif a=No then
....
end if
 i want 'a' value
bye. 
Message #2 by "Walter Mesquita" <wmesquita@p...> on Tue, 10 Dec 2002 11:33:00
Hi,
you can use a confirm('Confirmation message.'). Itīs a javascript command 
that displays a confirmation message box (with an "ok" and a "cancel" 
button) and returns true if the user clicks the "ok" button and false 
otherwise.

You can capture the return of the confirm(...) and post the page back to 
the server. Your processing can be done there.

If I were you I would create a control that renders the necessary 
javascript code. The control would implement the 'IPostBackEventHandler' 
interface, that would enable it to treat post backīs. Your processing 
would be done upon postback.

Hope it helps.

Walter

> Hi All,
t> hanks for your help in advance
m> y problem is

> How can i use messagebox to confirm save record
e> xample:

> a= messagebox("Are you sure to save",YesNoCancel);
i> f a= Yes then
.> .....
e> lseif a=No then
.> ...
e> nd if
 > i want 'a' value
b> ye. 

  Return to Index