0

Hi

Thanks for viewing this thread. Does anyone know how to display MessageBox at C# aspx pages?

Sorry i cannot use MessageBox.Show() as it does not display it when i run it with IIS.

Please ask me more question if you need to.

Thanks for the help

3
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by Mayur Gujrathi
0

It is not possible to show message box in asp.net. To display a message you can use content presenter such as Label .
To show some client side errors use js alert box

0

Hi

Thanks for viewing this thread. Does anyone know how to display MessageBox at C# aspx pages?

Sorry i cannot use MessageBox.Show() as it does not display it when i run it with IIS.

Please ask me more question if you need to.

Thanks for the help

Try this
string Actionmsgbox = ("<script>alert('Data Saved Successfully');</script>");
Page.ClientScript.RegisterStartupScript(this.GetType(), "Say", Actionmsgbox);

0

string Actionmsgbox = ("<script>alert('Data Saved Successfully');</script>");
Page.ClientScript.RegisterStartupScript(this.GetType(), "Say", Actionmsgbox);

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.