catch (SqlException ex) { lblmsg.Text = ex.Message.ToString(); }
catch (SqlException ex) { string Msgscript = "<script>alert('" + ex.Message + "')/script>"; if (!Page.IsStartupScriptRegistered("myErrorScript")) { Page.ClientScript.RegisterStartupScript("myErrorScript", Msgscript); } }
Response.Write("<script>alert('"+ Server.HtmlEncode(ex.Message) + "')</script>");
string Msgscript = "<script>alert('" + ex.Message + "');</script>"; if (!Page.IsStartupScriptRegistered("myErrorScript")) { Page.ClientScript.RegisterStartupScript(this.GetType(),"myErrorScript", Msgscript); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)