<customErrors mode="On" defaultRedirect="GenericErrorPage.htm">
<error statusCode="403" redirect="NoAccess.htm" />
<error statusCode="404" redirect="404.html" />
</customErrors>
这是web.config里面配置的, 输入xx.aspx的时候不存在页面就会到指定的404.html
但是输入xxxx就直接走404了。。。
试过在Global.asax Application_Error里面处理,但是根本不走Application_Error这个函数,就直接系统的404了