Tutorial - ASP - Custom Error Page / Document
Using your very own custom error page in you Asp.NET website is amazingly easy, specially following the proceeding tutorial. 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> |
|