How to set custom error handling in Web.config file Asp.net
<configuration>
<system.web>
<customErrors mode="RemoteOnly" defaultRedirect="~/Errors/DefaultErrorPage.aspx">
<error statusCode="400" redirect="~/Errors/ErrorPage400.aspx" />
<error statusCode="401" redirect="~/Errors/ErrorPage401.aspx" />
<error statusCode="403" redirect="~/Errors/ErrorPage403.aspx" />
<error statusCode="404" redirect="~/Errors/ErrorPage404.aspx" />
<error statusCode="405" redirect="~/Errors/ErrorPage405.aspx" />
........................Specify more error code
</customErrors>
</system.web>
</configuration>
No comments:
Post a Comment
Thank you for your interest .