Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Sep 16, 2010 11:05 PM|LINK
@ dfordurai, You could just use the customErrors node in the <system.web> section of the web.config (This code is usually commented out in a new website in VS2008). This would catch all the 404's
and send them to a page called filenotfound.aspx. See example below.
<customErrors mode="On" defaultRedirect="error.aspx">
<error statusCode="404" redirect="filenotfound.aspx" />