码迷,mamicode.com
首页 > Web开发 > 详细

ASP.NET - 出错页

时间:2015-07-17 20:29:54      阅读:103      评论:0      收藏:0      [点我收藏+]

标签:

在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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!