标签:
在web.config文件中,编写如下代码:
<system.web> <customErrors mode ="On" defaultRedirect ="~/Error.html"></customErrors> </system.web>
其中 Error.html 就是出错之后要跳转的页面。
ASP.NET - 出错页
原文地址:http://www.cnblogs.com/KTblog/p/4655417.html