asp.net出错或404错误(找不到页面)自动跳转 webconfig配置方法

<customErrors mode="On" defaultRedirect="error.html">
              <error statusCode="403" redirect="error.html" />
              <error statusCode="404" redirect="404.htm" />
            </customErrors>

你可能感兴趣的:(asp.net)