ASP错误信息提示函数

sub ShowErrInfo(TopInfo)
    conn.Close
    set conn=nothing
    Response.Write "<html><head>"
    Response.Write "<meta http-equiv=Content-Type content=text/html;charset=gb2312></head>"
    Response.Write "<body topmargin=0  rightmargin=0  leftmargin=0>"
    Response.Write "<script language=vbscript>" & vbcrlf
    Response.Write "MsgBox """&TopInfo&""",16,""错误提示信息""" & vbcrlf
    Response.Write "location.href = ""javascript:history.back()""" & vbcrlf
    Response.Write "</script>" & vbcrlf
    Err.Clear
    response.end
end sub

转载于:https://www.cnblogs.com/guoxiaowen/archive/2010/06/04/1751204.html

猜你喜欢

转载自blog.csdn.net/weixin_33788244/article/details/93330000