title: How do I exclude things that match the specified path for an HttpHandler in ASP.Net?
body: <p>I know that if I want to have requests for MyPage.aspx go to the class called MyHandler in the assembly called MyAssembly, I can add this to my web.config file:</p>
  
  <pre><code>&lt;configuration&gt;
    &lt;system.web&gt;
      &lt;httpHandlers&gt;
        &lt;add verb="*" path="MyPage.aspx" type="MyHandler, MyAssembly"/&gt;
    &lt;/system.web&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>This works for any MyPage.aspx at the (made up) URL: www.mycoolsite.com/MyProject/[SomePathHere]/MyPage.aspx</p>
  
  <p>What if I want to do it for every MyPage.aspx <em>except</em> www.mycoolsite.com/MyProject/NoHandler/MyPage.aspx</p>
  
  <p>Is there a way to exclude that path from the handler?</p>