public void alert(string msg, string key)
{
ClientScriptManager csm = Page.ClientScript;
Type cstype = this.GetType();
msg = msg.Replace("/"", "/'");
string script = "alert(/"" + msg + "/")";
csm.RegisterStartupScript(cstype, key, script, true);
}