try { dbquery.getconnection(txtsname.Text, txtuname.Text, txtpwd.Text); pnlDB.Visible = true; pnlCN.Visible = true; ddlDB(); } catch (Exception ex) { lblex.Visible = true; string p = ex.Message.ToString(); lblex.Text = p; pnlDB.Visible = false; pnlCN.Visible = true; }
Response.Write("<script language='javascript'>alert('" + p + "')</script>");
ClientScript.RegisterStartupScript(GetType(), "alert", "alert('Your message');", true);
Response.Write
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)