title: Display custom error in error.aspx page in asp.net webforms
body: <p>I want to show the Custom Errors in error.aspx page when any error occur. Its redirecting to error.aspx when error happens. But not showing the message.</p>
  
  <p>I set web.config like</p>
  
  <pre><code>&lt;customErrors mode="On" defaultRedirect="/error.aspx" redirectMode="ResponseRewrite"&gt;
    &lt;error statusCode="404" redirect="/notfound.aspx" /&gt;&lt;/customErrors&gt;
  </code></pre>
  
  <p>Is there any way to show the error message in error.aspx page. </p>