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

  • 相关阅读:
    字符串的输入函数gets
    51nod 1113(矩阵快速幂简单题)
    矩阵快速幂基础
    hdu-2141(二分查找+暴力)
    opencv 摄像头 指定大小 数量 的图片
    Windows环境下使用tensorflow opencv的小事儿
    Vue+D3 V4 实现模块化
    Vue安装
    js 日历
    js基础
  • 原文地址:https://www.cnblogs.com/cookies9/p/1964760.html
Copyright © 2011-2022 走看看