Exception ex = new Exception(); ex = Server.GetLastError(); string errMessage = ex.Message; string innerMessage = ex.InnerException.Message; string innerStack = ex.InnerException.StackTrace; string source =ex.Source; string stack = ex.StackTrace;
ex.InnerException.StackTrace
if (ex.InnerException.StackTrace.Contains("login")) { Response.Redirect("Home.aspx"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)