MessageBox

  • Thread starter Thread starter Rodrigo Ferreira
  • Start date Start date
R

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
 
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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

MessageBox 1
Cookie Encryption 2
Web.Config Runtime 1
.net 1
javascript messagebox use 10
Click Event 2
Shift+Insert 1
How to call Visual C dll and .Net dll at clientside? 1

Back
Top