catch (Exception exc) { var msg = exc.Message; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ALERT", "alert('error')", true); }
catch (Exception ex) { Console.WriteLine("{0} Exception caught.", ex); }
catch (Exception exc) { var msg = exc.Message; Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "ALERT", "alert('" + msg + "')", true); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)