title: Set up 2 different custom error pages for 2 different parts of 1 website
body: <p>Currently I'm having 1 custom error page for my whole ASP .NET site:</p>
  
  <pre><code>&lt;system.web&gt;
      &lt;customErrors mode="RemoteOnly" defaultRedirect="~/ErrorPage.aspx" /&gt;
  &lt;/system.web&gt;
  </code></pre>
  
  <p>However, I would like to set up 2 different error pages, so that error on different part of the side will cause redirection to different error pages. For example:</p>
  
  <ul>
  <li>When users encounter an error in a page within <code>http://example.com/Part1/</code> they will be redirect to <code>ErrorPage1.aspx</code>. </li>
  <li>When users encounter an error in a page within <code>http://example.com/Part2/</code> they will be redirect to <code>ErrorPage2.aspx</code></li>
  </ul>
  
  <p>Is it possible at all?</p>