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

Recommended Answers

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

Jump to Post

All 3 Replies

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

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);

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.