The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Using IHttpHandler to Add Error Handling to ASPX Pages

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Peter G Provost

Posts: 849
Nickname: pprovost
Registered: Aug, 2003

Peter G Provost is a Solution Architect for Interlink Group in Denver, CO.
Using IHttpHandler to Add Error Handling to ASPX Pages Posted: Aug 21, 2003 3:49 PM
Reply to this message Reply

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...
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Peter G Provost
Latest Posts From Peter Provost's Geek Noise

Advertisement

I was just putting together a presentation on the ASP.NET Runtime/Pipeline for a customer when this little tidbit popped up on Craig Andera's weblog.

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.

Read Craig's post for a nice code sample.

Read: Using IHttpHandler to Add Error Handling to ASPX Pages

Topic: I'm Published! Previous Topic   Next Topic Topic: More on Generics

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use