,
Share with your friends 

MessageBox in ASP.NET

0 ratings Views 175 
Author: SNLKJHA1 (SUNIL KUMAR JHA)  View Profile |  View other solutions by this author

Question / Problem


HOW TO SHOW MessageBox IN ASP.NET

Solution

private void MessageBox(string msg)
     {
       Label lbl = new Label();
       lbl.Text = "<script language='javascript'>" + Environment.NewLine + "window.alert('" + msg + "')</script>";
       Page.Controls.Add(lbl);
      }

MessageBox("PLZ ENTER LOGINID & PASSWORD  CORRECTLY");

Applies to

ASP.Net 3.5

Rank It

Login to rank it

Report


Advertisement