title: Custom PageHandlerFactory for .aspx
body: <p>I am building a fairly simple CMS.  I need to intercept requests for the majority of .aspx pages in my web application, in order to gain complete control over the output.  In most cases, the output will be pulled from cache and will just be plain HTML.</p>
  
  <p>However, there still are a couple of pages that I am going to need to use asp: controls on.  I assume the best way for me to bypass a few particular requests would be to inherit System.Web.UI.PageHandlerFactory and just call the MyBase implementation when I need to (please correct me if I am wrong here).  But how do I transfer all other requests to my custom handler?</p>