zoukankan      html  css  js  c++  java
  • 设置出错页

    1.找到web.config配置文件

    2.制作出错页error.htm,代码如下

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <title>出错拉~~~</title>
    <link href="css/login.css" rel="stylesheet" type="text/css" />
    <script language="javascript" type="text/javascript">
    var i = 5;
    var intervalid;
    intervalid
    = setInterval("fun()", 1000);
    function fun() {
    if (i == 0) {
    window.location.href
    = "default.aspx";
    clearInterval(intervalid);
    }
    document.getElementById(
    "mes").innerHTML = i;
    i
    --;
    }
    </script>
    </head>
    <body>
    <div id="errorfrm" class="round1">
    <h3>出错啦~~~</h3>
    <div id="error">
    <img src="images/error.gif" alt="" />
    <p>系统出错,请联系管理员</p>
    <p>将在 <span id="mes">5</span> 秒钟后返回首页</p>
    </div>
    <div id="footer">
    版权所有
    &copy; bin &amp;<a href="http://t.sina.com.cn/1729954320" target="_blank">新浪博客</a>
    </div>
    </div>
    </body>
    </html>

    3.配置好web.config

  • 相关阅读:
    gflag使用
    INTERVIEW #2
    Decision Tree
    Java FAQ
    K-Nearest Neighbors
    INTERVIEW #1
    C++ FAQ
    INTERVIEW #0
    Selection Sort
    TCP 3-Way Handshake
  • 原文地址:https://www.cnblogs.com/cookies9/p/1964760.html
Copyright © 2011-2022 走看看