Fire Alert Message from aspx.cs page

Posted by Lakhangarg under ASP.NET category on | Views : 9646
public static void MessageBox(string Message, Page page)
string javascript = "<SCRIPT language = \"javascript\">alert(\"" + Message + "\");</script>";
page.RegisterClientScriptBlock("message", javascript);

to fire an alert message just pass message and object of that page.

Thanks & Regards
Lakhan Pal Garg

Comments or Responses

Login to post response