📄 errormsg.aspx
字号:
<%@ Page Language="C#" AutoEventWireup="true" Codebehind="ErrorMsg.aspx.cs" Inherits="web.Components.ErrorMsg" %>
<!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 runat="server">
<title>ErrorMsg</title>
<style type="text/css">
body { padding-right: 32px; padding-left: 32px; font-size: 13px; background: #eee; padding-bottom: 32px; margin-left: auto; width: 80%; color: #000; margin-right: auto; padding-top: 32px; font-family: verdana, arial, sans-serif }
div { border-right: #bbb 1px solid; padding-right: 32px; border-top: #bbb 1px solid; padding-left: 32px; background: #fff; padding-bottom: 32px; border-left: #bbb 1px solid; padding-top: 32px; border-bottom: #bbb 1px solid }
h1 { padding-right: 0px; padding-left: 0px; font-weight: bold; font-size: 150%; padding-bottom: 36px; margin: 0px; color: #904; padding-top: 0px; font-family: "trebuchet ms", ""lucida grande"", verdana, arial, sans-serif }
h2 { padding-right: 0px; padding-left: 0px; font-weight: bold; font-size: 105%; padding-bottom: 0px; margin: 0px 0px 8px; text-transform: uppercase; color: #999; padding-top: 0px; border-bottom: #ddd 1px solid; font-family: "trebuchet ms", ""lucida grande"", verdana, arial, sans-serif }
p { padding-right: 0px; padding-left: 0px; padding-bottom: 6px; margin: 0px; padding-top: 6px }
a:link { color: #002c99; text-decoration: none }
a:visited { color: #002c99; text-decoration: none }
a:hover { color: #cc0066; background-color: #f5f5f5; text-decoration: underline }
</style>
<script type="text/javascript">
var duration=2900;
var timer=null;
var endTime = new Date().getTime() + duration + 100;
function interval()
{
var n=(endTime-new Date().getTime())/1000;
if(n<0) return;
document.getElementById("timeout").innerHTML = n.toFixed(3);
setTimeout(interval, 10);
}
function stopJump()
{
clearTimeout(timer);
document.getElementById("jumphint").style.display = "none";
}
window.onload=function()
{
timer=setTimeout("document.location.href='<%=HomeLink %>';", duration);
interval();
}
</script>
</head>
<body>
<form id="form1" runat="server">
<div>
<h1>
出错啦!!</h1>
对不起! 你所访问的页面出错或者不存在!<br />
<span id="jumphint">系统在 <span id="timeout">3.000</span> 秒后 将自动</span>跳转到 <a href="../Login.aspx" target="_top">
登陆界面</a><br />
<input type="button" value="停止自动跳转" onclick="stopJump(); this.disabled=true" id="Button1"
name="Button1" />
</div>
<div>
<h1>
.Text - 应用程序错误!</h1>
<h2>
详细情况</h2>
<p>
<span id="ErrorMessageLabel" runat="server">没有可用的错误信息。</span></p>
<p>
</p>
<p style="margin-top: 24px">
<a id="HomeLink" href="<%=HomeLink %>">返回站点</a></p>
</div>
</form>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -