Execute logging code after an HTTP Response
I'm created a custom HttpModule that logs data from all my webpages back to my database. I execute my logging code on Application_EndRequest because I was told that was the last major event I could use.
The module is working fine, however, when there was a problem connecting to the DB today, it threw an error instead of pulling up the webpage. Is there a way to execute the code AFTER the HTTP response is already sent? I don't want to make the HTTP response wait while I access external resources.
Whatever you can do or dream you can, begin it. Boldness has genius, power and magic in it. Begin it now.
-Johann von Goethe
When Two Hearts Race... Both Win.
-Dove Chocolate Wrapper
Chroniclemaster1, Founder of www.EarthChronicle.com
A Growing History of our Planet, by our Planet, for our Planet.