当页面出错时自动转向相应的出错页
<system.web>
<customErrors mode ="On" defaultRedirect="~/error.htm">
</customErrors>
</system.web>