错误处理机制
<
?
xml version
=
"
1.0
"
?
>
<configuration>
<system.web>
<customErrors mode = " On " defaultRedirect = " GenericErrorPage.htm " >
<error statusCode = " 403 " redirect = " Error403.htm " / >
<error statusCode = " 404 " redirect = " Error404.htm " / >
< / customErrors>
< / system.web>
< / configuration>
<configuration>
<system.web>
<customErrors mode = " On " defaultRedirect = " GenericErrorPage.htm " >
<error statusCode = " 403 " redirect = " Error403.htm " / >
<error statusCode = " 404 " redirect = " Error404.htm " / >
< / customErrors>
< / system.web>
< / configuration>