title: .Net defaultRedirect to locale-specific error page
body: <p>I have an ASP.Net webforms application that uses the .Net globalization features to deliver .aspx pages in different locales.  I have custom errors defined as</p>
  
  <pre><code> &lt;customErrors mode="RemoteOnly" defaultRedirect="Error.htm"&gt;
  </code></pre>
  
  <p>I prefer using a non-.Net page for the defaultRedirect to prevent the potential for infinite loops, in case the error page itself generates an error, so I have targeted a static .htm page.  However, I would like to render that page in the locale that the user originally requested, where the locale is determined from a querystring.</p>
  
  <p>What is the best way to accomplish this?</p>
  
  <p>I have considered these options, but I am interested in other options:</p>
  
  <ul>
  <li>Redirect to some other app/domain that can run server-side logic to redirect to or render a locale-specific response (seems like overkill)</li>
  <li>Use client-side code (JavaScript) to render locale-specific content (doesn't work for JavaScript-disabled browsers, though, and I would like it to work for these users too)</li>
  <li>Make the static error page display text in multiple languages--show all language text on one page (I prefer to only show text in one locale, though)</li>
  </ul>