| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 678 人关注过本帖
标题:Microsoft VBScript 运行时错误 (0x800A01A8)缺少对象: '[undefined]'
只看楼主 加入收藏
dashan520
Rank: 1
等 级:新手上路
帖 子:3
专家分:0
注 册:2011-5-11
结帖率:50%
收藏
 问题点数:0 回复次数:1 
Microsoft VBScript 运行时错误 (0x800A01A8)缺少对象: '[undefined]'
错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象: '[undefined]'
/enterprise/include/config.asp, 第 5 行

-----------------------------------
附代码:
<!--#include file="../include/adovbs.inc" -->
<%
'On Error Resume Next
'if recordset is open close it, &H00000001 = AdStateOpen
if Session("rs").state = AdStateOpen then---------------------------------------------提示的错误行
    Session("rs").close
end if

function CheckSession()
    if session("login_name") = "" or session("member_id") = "" then
        CheckSession = ""
    else
        CheckSession = Session("mode")
    end if
end function

function safeConvert(strOrig)
    dim strTemp
    if isnull(strOrig) then
        strTemp = strOrig
        'Response.Write("strOrig : [" & strOrig & "]<br>")
    else
        'Response.Write("strTemp : [" & strOrig & "]<br>")
        strTemp = Server.HTMLEncode(strOrig)
        strTemp = Replace(strTemp,chr(10),"<br>")
        strTemp = Replace(strTemp," ","&nbsp")
        strTemp = Replace(strTemp,chr(9),"&nbsp&nbsp&nbsp&nbsp")
        'strTemp = Replace(strTemp,",","&pound;&not;")
        'strTemp = Replace(strTemp,"'","&iexcl;&macr;")
        'strTemp = Replace(strTemp,"&quote","&iexcl;±")
        'strTemp = Replace(strTemp,".","&iexcl;&pound;")
    end if
    safeConvert = strTemp
end function
function convertBack(strOrig)
    dim strTemp
    strTemp = strOrig
    if not isnull(strOrig) then
        'strTemp = Replace(strTemp,"&iexcl;&pound;",".")
        strTemp = Replace(strTemp,"&iexcl;&iexcl;"," ")
        'strTemp = Replace(strTemp,"&pound;&not;",",")
        strTemp = Replace(strTemp,"<br>",chr(10))
        strTemp = Replace(strTemp,"&lt","<")
        strTemp = Replace(strTemp,"&gt",">")
        strTemp = Replace(strTemp,"&quot",chr(34))
        strTemp = Replace(strTemp,"&nbsp"," ")
    end if
    convertBack = strTemp
end function
function r2v(str)
    dim tmp
    tmp=Replace(str,rP,vP,1,-1,1)
    r2v=Replace(tmp,"\","/")
    'Response.Write r2v & "<br>" & rP & "<br>" & vP
end function

function GetWLen(str)
    dim i,l
    l = len(str)
    for i=1 to l
        if asc(mid(str,i,1)) > 255 then
            l = l + 1
        end if
    next
    GetWLen = l
end function

function SubWStr(str,start,leng)
    dim i,realLen
    realLen = 0
    for i=1 to Len(str)
        if realLen <= leng + 1 then
          if asc(mid(str,i,1)) > 255 then
        realLen = realLen + 2
      else
        realLen = realLen + 1
            end if
        else
            Exit For
        end if
    next
    SubWStr = mid(str,start,i)
end function

function CutString(str,l)
    dim strR
    strR = CStr(str)
    if GetWLen(strR) > l + 3 then
        strR = SubWStr(strR,1,l) & "..."
    end if
    CutString = strR
end function

function CutDate(sDate)
    dim arr,dateR
    dateR = Cstr(sDate)
    arr = split(dateR," ")
    CutDate = arr(0)
end function

%>
搜索更多相关主题的帖子: Microsoft close 
2011-05-13 06:11
dzt0001
Rank: 13Rank: 13Rank: 13Rank: 13
等 级:蒙面侠
威 望:5
帖 子:1281
专家分:4998
注 册:2005-10-12
收藏
得分:0 
哪来的代码。session有state属性吗?

----我怎能在别人的苦难面前转过脸去----
2011-05-13 08:56
快速回复:Microsoft VBScript 运行时错误 (0x800A01A8)缺少对象: '[undefined]'
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.025891 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved