Right click the solution explorer and click the add references and choose
System.Windows.Forms
Now in your aspx.cs page
System.Windows.Forms.MessageBox.Show("Type any text");
Now run and check you will be getting the messagebox in ASP.Net.

abdul muqeetPosted May 19, 2012, 12:44 AM EDT
how can i show message from sql server , like when i enter data it should show " Your ID is 123 " from sql server
Mohd AdilPosted May 22, 2011, 4:10 AM EDT
Yes, it works. It has done my work very easily. I am very happy.
Jonathas SucupiraPosted Apr 21, 2011, 9:24 AM EDT
I believe this would work ClientScript.RegisterStartupScript(Me.GetType(), "Alert", "javascript:alert('I am an alert box!');", True)
Krishna GaradPosted Apr 21, 2011, 4:41 AM EDT
Suthish is right it will not work on server.
sumitha vrPosted Apr 21, 2011, 1:56 AM EDT
Yes This Is great way to use Message box in Asp.net. Thanks a lot...
Suthish NairTOP 100Posted Feb 2, 2011, 6:32 AM EST
This will work only on local system, not on server.
Hasibul HaquePosted Jan 30, 2011, 11:35 PM EST
It works but not as a Dialog.... I have to find message from task bar.