September 26, 2013

Dispaly 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");
        System.Windows.Forms.MessageBox.Show("Record Saved Successfully", "Saved"); 
  • Disaplay message in ASP.net Response.Write("<script>alert('Message')</script>");


No comments: