SyntaxFix
Write A Post
Hire A Developer
Questions
You can simply write
try { //Your Logic and code } catch (Exception ex) { //Error message in alert box Response.Write("<script>alert('Error :" +ex.Message+"');</script>"); }
it will work fine