Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx thread: How to implement a MessageBox????


Message #1 by "Gerhard Krenn" <gerhard@k...> on Thu, 26 Sep 2002 08:06:08
Hi!

I wrote an ASPX application which workes fine except the possibility to 
have something equvalent to the Windows.Forms.Messagebox which is not 
implemented in ASP.NET...

I know the javascript possibility of "window.alert" but how can I call a 
JavaScript function in HTML code from the DotNet-Code???

Or how else can I implement a "MessageBox"?


Thanks
Gerhard
Message #2 by "ramprasad upadhyaya" <rpu_forum@y...> on Thu, 26 Sep 2002 09:59:34
Hi,

        I think you want to give Message box from Code behind(aspx.vb file)
This is how u can do it...
            
            Dim sScript
            sScript &= "<script>"
            sScript &= "alert('Hai Ramprasad.');"
            sScript &= "</script>"
            Response.Write(sScript)

Cool right...

Bye....

#########################################################################
> Hi!

> I wrote an ASPX application which workes fine except the possibility to 
h> ave something equvalent to the Windows.Forms.Messagebox which is not 
i> mplemented in ASP.NET...

> I know the javascript possibility of "window.alert" but how can I call a 
J> avaScript function in HTML code from the DotNet-Code???

> Or how else can I implement a "MessageBox"?

> 
T> hanks
G> erhard

  Return to Index