redirect page when no page found (error code 404) in asp.net

in web.config

<configuration>
<system.web>
    <customErrors defaultRedirect="default.aspx" mode="On">
      <error statusCode="404" redirect="page-error.aspx"/>
    </customErrors>
</system.web>
</configuration>

Comments

Popular posts from this blog

Image to base 64 conversion in asp.net

base 64 string To image conversion with compression in asp.net