How to show message box in ASP.Net

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.