C
Chuck
I have an HttpModule I use for exception handling.
Essentially it handles
AppDomain.CurrentDomain.UnhandledException
and
application.Error
When an exception occurs I log it and then do a response.clear
and stick some new html into the response, giving the user a nice error
message.
The html error message shows up on his requested page.
If I have an exception within an Ajax update panel, the logging still works.
However, sticking stuff into the Response does not.
I wrote the HttpModule because I can drop-it-in on all of our websites, with
no coding needed on the sites webpages.
Is their a way to get my error message html sent back to the user/page and
still keeping all my exception handling code contained with the HttpModule?
thanks,
Essentially it handles
AppDomain.CurrentDomain.UnhandledException
and
application.Error
When an exception occurs I log it and then do a response.clear
and stick some new html into the response, giving the user a nice error
message.
The html error message shows up on his requested page.
If I have an exception within an Ajax update panel, the logging still works.
However, sticking stuff into the Response does not.
I wrote the HttpModule because I can drop-it-in on all of our websites, with
no coding needed on the sites webpages.
Is their a way to get my error message html sent back to the user/page and
still keeping all my exception handling code contained with the HttpModule?
thanks,