To display message box, just declare this function,
protected void MessageBox(string message)
{
string sJavaScript = "<script language=javascript>\n";
sJavaScript += "alert('" + message + "');\n";
sJavaScript += "</script>";
this.RegisterStartupScript("MessageBox", sJavaScript);
}
and call this function and provide the string value you want to display.
MessageBox("Horray ! I got my Message Box");
No comments:
Post a Comment