Code:
public void Say(string msg)
{
string popupScript;
popupScript = "<script language='javascript'>alert('" + msg + "');</script>";
ClientScript.RegisterStartupScript(this.GetType(), "popupScript", popupScript);
}
Calling:
Say("Please Select a Subject");
public void Say(string msg)
{
string popupScript;
popupScript = "<script language='javascript'>alert('" + msg + "');</script>";
ClientScript.RegisterStartupScript(this.GetType(), "popupScript", popupScript);
}
Calling:
Say("Please Select a Subject");
No comments:
Post a Comment