Home All Groups Group Topic Archive Search About
Author
20 Jan 2006 2:13 PM
Rodrigo Ferreira
Hello,

Anyone knows how to use a MessageBox into a asp.net project using C#?

MessageBox.Shows() doesn't exists!

Greetings,

Rodrigo Ferreira

Author
20 Jan 2006 2:21 PM
Joey
You must use a scripting language such as javascript to do this on the
client side. You can register the script from your code behind pages...

this.Page.RegisterClientScriptBlock("ShowMessageBox","<script
language='javascript'>window.alert('This is a message
box!')</script>");

....or...

this.Page.RegisterStartupScript("ShowMessageBox","<script
language='javascript'>window.alert('This is a message
box!')</script>");

....or...

you can plant the script directly in the aspx page.

I sure there are many other options as well...
Author
20 Jan 2006 5:14 PM
Steve C. Orr [MVP, MCSD]
Yes, here's a free MessageBox control I wrote in C# with the source code
included:
http://SteveOrr.net/articles/ClientSideSuite.aspx

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net


Show quote
"Rodrigo Ferreira" <rjrferre***@gmail.com> wrote in message
news:%23LHIjucHGHA.1628@TK2MSFTNGP12.phx.gbl...
> Hello,
>
> Anyone knows how to use a MessageBox into a asp.net project using C#?
>
> MessageBox.Shows() doesn't exists!
>
> Greetings,
>
> Rodrigo Ferreira
>

AddThis Social Bookmark Button