Show Javascript in C#.net
1.
2.
string script = "<script type=" + "text/javascript" + ">alert('" + cleanMessage + "');</script>";
System.Web.UI.Page page = System.Web.HttpContext.Current.CurrentHandler as System.Web.UI.Page;
page.ClientScript.RegisterClientScriptBlock(page.GetType(), "alert", script);