zoukankan      html  css  js  c++  java
  • ASP 错误捕捉,处理

    Asp利用 On Error Resume Next捕捉异常,根据Err.Number判断是否有错误

    注:On Error Goto 0取消捕捉异常

    模板文件页面

    <%
    Response.Buffer = True
    'On Error Resume Next
    %>
    <%
    If Err.Number <> 0 Then
    Response.Clear
    %>
    <html>
    <head>
    <title></title>
    </head>
    <body bgcolor="#C0C0C0">
    <font face='ARIAL'>An error occurred in the execution of this ASP page<br>
    Please contact administrator.<p>
    <b>Page Error Object</b><br>
    Error Number:<%= Err.Number%><br>
    Error Description:<%= Err.Description%><br>
    Error Source:<%= Err.Source%><br>
    Error Line:<%= Err.Line%><br>
    </font>
    </body>
    </html>
    <%End If %>

  • 相关阅读:
    权限管理命令
    常用命令2
    常用命令1
    queue
    poj 3984
    L3-008 喊山 (30 分)
    常州大学新生寒假训练会试 I 合成反应
    dfs 的全排列
    poj 1154
    hdu 1241
  • 原文地址:https://www.cnblogs.com/TddCoding/p/4900067.html
Copyright © 2011-2022 走看看