错误页
摘要:
错误页配置(web.config):①<customErrors mode=“On” defaultRedirect=“~/GenericErrorPage.htm”> <error statusCode=“403” redirect=“NoAccess.htm” /> <error statusCode=“404” redirect=“FileNotFound.htm” /></customErrors>②mode的三个可选值(On Off RemoteOnly):On: 总显示定制错误页Off: 总显示调用堆栈等异常信息RemoteOnly: 阅读全文
posted @ 2011-09-20 16:50 les_vies 阅读(294) 评论(0) 推荐(0) 编辑