65.9K
CodeProject is changing. Read more.
Home

Getting the last error in a custom error page

starIconstarIconstarIconstarIcon
emptyStarIcon
starIcon

4.33/5 (3 votes)

Jan 3, 2011

CPOL
viewsIcon

29450

When you provide a custom error handler page, it is useful to be able to log what caused the problem, so that you can fix it. Server.GetLastError() will not return anything in the page, though...