I would recommend writing your own page class that will handle the errors
experience on every page. It saves you from having to put the
Page.OnError() method of every page.
I used to use Application_OnError but I could consistently have access to
the session variables that held user information, and I was trying to catch
the sql query used that crashed the page (usually that is where the
Exceptions are for my project).
bill
"Mikael Engdahl" <mi******@engdahl.no.spam.com> wrote in message
news:uJ**************@tk2msftngp13.phx.gbl...
Hello,
When an unhandled exception occurs on an ASP.NET page, a well known page
will appear, having the header "Server Error in '[app path]' Application"
and the Exception Details and Stack Trace below it.
Is it possible to customize this page and for example save to exception
info in a database and display a custom message to the user.
Does anybody know if this is possible?
--
Mikael Engdahl