Tutorial - Custom Error Page
Using you own custom error page in you Asp.NET website is easy.
Place the following web.config file in the website root.
<error statusCode="404" redirect="/ErrorPage/404.aspx"
/>
status code is the error code you would like to catch.
<configuration>
<system.web>
<customErrors mode="On" defaultRedirect="/ErrorPage/404.aspx">
<error statusCode="404" redirect="/ErrorPage/404.aspx"
/>
</customErrors>
</system.web>
</configuration> |
|