public void exceptionCheck(){ try { throw new Exception("test"); } catch(Exception e){ Response.Write(e.StackTrace); } }