Hi
In case of error, I want to show it. I tried two different ways, but none of the two works.
if i do string a = "ok", then both work. Strange, because ex.Message is a string.
Thanks
catch (SqlException ex)
{
string a = ex.Message;
ClientScript.RegisterStartupScript(this.GetType(), "", "alert('Error:' + '" + a + "');", true);
Response.Write("");
}
Valerie MeunierPosted Jun 26, 2022, 4:35 PM
Rijwan AnsariPosted Jun 26, 2022, 2:25 PM
Sachin SinghPosted Jun 26, 2022, 11:05 AM