creation of message box in asp
|
|
|
Question / Problem
|
how to create msg box in asp het=re is the solution
|
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 2.0
|
Rank It |
|