I have my own exception based on some condition and want to raise an alert when control comes in this catch block
catch (ApplicationException ex) { //want t
You can also do this :
catch (Exception ex) { ScriptManager.RegisterStartupScript(Page, Page.GetType(), "showError", "alert('" + ex.Message + "');", true); }
this will show the exeption message in the alert box