title: Evaluating ASPX Pages from custom httpHandlers
body: <p>I have search everywhere for help and its starting to annoy me.</p>
  
  <p>I am creating an Internal Tooling Website which stores Tools and their related information.</p>
  
  <p>My vision is to have a web address (Http://website.local/Tool/ID)
  Where ID is the ID of the Tool we want displayed.
  My reasoning is then I can extend the functionality of the URL to allow for various other functions.</p>
  
  <p>Currently I use a custom httpHandler which intercepts any URL which is in the 'Tool' Folder.</p>
  
  <pre><code>    using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  
  namespace Tooling_Website.Tool
  {
      public class ToolHandler : IHttpHandler
      {
          public bool IsReusable
          {
              get { return false; }
          }
  
  
          public void ProcessRequest(HttpContext context)
          {
              //The URL that would hit this handler is: http://{website}/Tool/{AN ID eg: http://{website}/Tool/PDINJ000500}
              //The idea is that what would be the page name is now the ID of the tool.
              //tool is an ASPX Page.
              tool tl = new tool();
              System.Web.UI.HtmlTextWriter htr = new System.Web.UI.HtmlTextWriter(context.Response.Output);
              tl.RenderControl(htr);
              htr.Close();
          }
      }
  }
  </code></pre>
  
  <p>Basically I have a page inside the 'Tool' folder (Tool\tool.aspx) which I want my customer httpHandler to Render into the Response.</p>
  
  <p>But this method doesn't work (It doesn't fail, just doesn't show anything) I can write the raw file to the response but obviously thats not my goal.</p>
  
  <p>Thanks,</p>
  
  <p>Oliver</p>