This post originated from an RSS feed registered with .NET Buzz
by Peter G Provost.
Original Post: Using IHttpHandler to Add Error Handling to ASPX Pages
Feed Title: Peter Provost's Geek Noise
Feed URL: /error.aspx?aspxerrorpath=/Rss.aspx
Feed Description: Technology news, development articles, Microsoft .NET, and other stuff...
Basically Craig needed to add error handling to a whole bunch of ASPX pages and
he didn't want to mess up the code that was already there.
IHttpHandler to the rescue! Since IHttpHandler is what is really driving the whole
ASPX process anyway, and since System.Web.UI.Page implements IHttpHandler, you can
reimplement it yourself and provide a try..catch block to catch those pesky exceptions.