Error pages in ASP.NET
- by koevoeter
In ASP.NET you can retrieve the last unhandled exception via:(HttpContext.Current.)Server.GetLastError() // Server object is available as a property in Page and UserControl context
This obviously only works in the same roundtrip. If you want to retrieve this information in your error page, you got a problem because the error page is not returned…