|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
MessageBoxHello,
Anyone knows how to use a MessageBox into a asp.net project using C#? MessageBox.Shows() doesn't exists! Greetings, Rodrigo Ferreira 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... Yes, here's a free MessageBox control I wrote in C# with the source code
included: http://SteveOrr.net/articles/ClientSideSuite.aspx 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 > |
|||||||||||||||||||||||