SolutionCottage.com
Posted  01 May 2009 - 20:23:28

Category: ASP.net


Custom 404 using web.config ASP.net

Issue:
You want to make your own custom 404 page using web.config.

Solution
Use these options in your web.config (under system.web)

<customErrors mode="On">
<error statusCode="404" redirect="~/404.aspx" />
</customErrors>








0 comments:








© SolutionCottage 2008-2011 9/26/2017 10:15:21 AM