how to build custom 404 error page in website using asp.net [Resolved]

Posted by Sampath1750 under ASP.NET on 4/23/2012 | Points: 10 | Views : 1293 | Status : [Member] | Replies : 1
how to build custom 404 error page in website using asp.net




Responses

Posted by: GSM_GSV on: 4/23/2012 [Member] Starter | Points: 50

Up
0
Down

Resolved
Add the below code in web.config after designing your 404.aspx page

<customErrors mode="On" defaultRedirect="/ErrorPages/403.aspx">

<error statusCode="404" redirect="/ErrorPages/404.aspx" />
</customErrors>


---------------------------------------
Live the life you've dreamed

Regards
MADHU

Sampath1750, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response