在出现未处理的错误时运行的代码

////在出现未处理的错误时运行的代码
//Response.Clear();
//Response.StatusCode = 404;

//Response.Write("<!DOCTYPE html>");
//Response.Write("<html>");
//Response.Write("<head>");
//Response.Write("<meta http-equiv=\"Content-Type\" content=\"text/html; charset=UTF-8\" />");
//Response.Write("<title>对不起,我迷路了 | 网站</title>");
//Response.Write("<meta name=\"description\" content=\"\" ><meta name=\"keywords\" content=\"\">");
//Response.Write("<style type=\"text/css\">");
//Response.Write("* { margin:0; padding:0; }");
//Response.Write("body { font:normal 14px/1.5 Tahoma, Helvetica, arial, sans-serif; color:#000; }");
//Response.Write(".main { position:relative; width:488px; height:383px; margin:77px auto 0; background:url(/image/404.png) left top no-repeat; }");
//Response.Write(".main .bubble-link { position:absolute; width:200px; height:160px; left:270px; top:0; display:block; text-indent:-9999px; cursor:pointer; }");
//Response.Write(".main .text-link { position:absolute; left:165px; top:420px; display:block; font-size:14px; color:#00BBBB; text-decoration:none; cursor:pointer; }");
//Response.Write(".main .text-link:hover { color:#F76120; text-decoration:underline; }");
//Response.Write(".main .timer { padding-right:5px; font-weight:bold; }");
//Response.Write("</style>");
//Response.Write("</head>");
//Response.Write("<body>");
//Response.Write("<div class=\"main\">");
//Response.Write("<a class=\"bubble-link\" href=\"http://www.xingjieyuan.com\">对不起,我迷路了,返回</a>");
//Response.Write("<a class=\"text-link\" href=\"http://www.xingjieyuan.com\">点我返回首页</a>");
//Response.Write("</div>");
//Response.Write("</body>");

//Response.Write("</html>");
//Response.End();

posted @ 2019-11-12 13:25  枫岫  阅读(181)  评论(0编辑  收藏  举报