Click here to Skip to main content
15,921,279 members
Articles / Programming Languages / ASP

Getting the last error in a custom error page

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
5 Jan 2011CPOL 7.2K   1  
Would it not be easier to capture your Error in your Global.aspx page?void Application_Error(object sender, EventArgs e){ Exception lastError = Server.GetLastError(); if (lastError == null) { ErrorLog("An error occurred, but no error information is available"); ...

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
South Africa South Africa
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions