| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1375 人关注过本帖
标题:Microsoft VBScript 运行时错误 (0x800A01A8)错误,请教高手
只看楼主 加入收藏
tiantong
Rank: 1
等 级:新手上路
帖 子:8
专家分:0
注 册:2009-12-27
收藏
得分:0 
xinwen.asp
改成这样,还是提示同行的错误

错误类型:
Microsoft VBScript 运行时错误 (0x800A01A8)
缺少对象
lianjie.asp, 第 6 行




<%
dim sql
Dim stringes,displays,homepages,filers,title,ok
set rs=server.createobject("adodb.recordset")
          sql="select * from info"
          rs.open sql,conn
stringes=rs("stringe")
displays=rs("display")
homepages=rs("homepage")
filers=rs("filer")
          rs.close
sql="Select top 10 * From news Order By Date DESC"
rs.open sql,conn
 if not rs.eof then
    rs.movefirst
    ok=ok & ""
    do while not rs.eof
    if len(rs("title"))>stringes then
    title=left(rs("title"),stringes)
    else
 title=rs("title")
 end if
    ok=ok &"<a href=../Display.asp?id=" & rs("id") & " title=点击链接,进入详细页面  target=_blank>"&title&"</a>[<font size=1>"&datevalue(rs("Date")) & "</font>]<br>"
        rs.movenext
    loop
   
end if
           rs.close

          set rs=nothing

ok=""&ok&""
response.write ok
%>
2009-12-27 18:18
aspic
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
等 级:贵宾
威 望:51
帖 子:2258
专家分:8050
注 册:2008-2-18
收藏
得分:0 
程序代码:
<%
dim sql
Dim stringes,displays,homepages,filers,title,ok
set rs=server.createobject("adodb.recordset")
          sql="select * from info"
          rs.open sql,conn
stringes=rs("stringe")
displays=rs("display")
homepages=rs("homepage")
filers=rs("filer")
          rs.close
sql="Select top 10 * From news Order By Date DESC"
rs.open sql,conn
if not rs.eof then
    rs.movefirst
    ok=ok & ""
    do while not rs.eof
    if len(rs("title"))>stringes then
    title=left(rs("title"),stringes)
    else
title=rs("title")
end if
    ok=ok &"<a href=../Display.asp?id=" & rs("id") & " title=点击链接,进入详细页面  target=_blank>"&title&"</a>[<font size=1>"&datevalue(rs("Date")) & "</font>]<br>"
        rs.movenext
    loop
    
end if
           rs.close

          set rs=nothing

ok=""&ok&""
response.write ok
%> 


程序代码:
lianjie.asp源码是:

<table width="99%"  border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="ffffff">
<%
  dim i
  i=0
    rs.open "select * from links where falg=1 and type1='1' order by id desc",conn,1,1'哪里来的rs
    if rs.recordcount=0 then 
       response.Write ""
    else
      if ii mod 8=0 then response.Write "<tr align=center bgcolor=F3F6FA>"
        do while not rs.eof
          response.write "<td><a href="&rs("webaddr")&" target=_blank><img src="&rs("weblogo")&" border=0 width=88 height=31></a></td>"
          i=i+1
      if i mod 8=0 then response.Write("</tr>")
          
     rs.movenext
          loop
   end if
rs.close
set rs=nothing
%>
</table>
2009-12-28 08:40
aspic
Rank: 17Rank: 17Rank: 17Rank: 17Rank: 17
等 级:贵宾
威 望:51
帖 子:2258
专家分:8050
注 册:2008-2-18
收藏
得分:0 
程序代码:
<!--#include file="conn.asp"-->

<%
dim sql
Dim stringes,displays,homepages,filers,title,ok
set rs=server.createobject("adodb.recordset")
          sql="select * from info"
          rs.open sql,conn,1,1
stringes=rs("stringe")
displays=rs("display")
homepages=rs("homepage")
filers=rs("filer")
          rs.close
sql="Select top 10 * From news Order By Date DESC"
rs.open sql,conn,1,1
if not rs.eof then
    rs.movefirst
    ok=ok & ""
    do while not rs.eof
    if len(rs("title"))>stringes then
    title=left(rs("title"),stringes)
    else
title=rs("title")
end if
    ok=ok &"<a href=../Display.asp?id=" & rs("id") & " title=点击链接,进入详细页面  target=_blank>"&title&"</a>[<font size=1>"&datevalue(rs("Date")) & "</font>]<br>"
        rs.movenext
    loop
   
end if
           rs.close
          'conn.close
          'set rs=nothing
          'set conn=nothing
ok=""&ok&""
response.write ok
%>




<table width="99%"  border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="ffffff">
<%
  dim i
  i=0
    rs.open "select * from links where falg=1 and type1='1' order by id desc",conn,1,1
    if rs.recordcount=0 then
       response.Write ""
    else
      if ii mod 8=0 then response.Write "<tr align=center bgcolor=F3F6FA>"
        do while not rs.eof
          response.write "<td><a href="&rs("webaddr")&" target=_blank><img src="&rs("weblogo")&" border=0 width=88 height=31></a></td>"
          i=i+1
      if i mod 8=0 then response.Write("</tr>")
         
     rs.movenext
          loop
   end if
rs.close
set rs=nothing
%>
</table>

<table width="99%"  border="0" align="center" cellpadding="3" cellspacing="1" bgcolor="ffffff">
<%
  dim ii
  ii=0
   Set rs1=Server.CreateObject("ADODB.Recordset")
   
    rs1.open "select * from links where falg=1 and type1='2' order by id desc",conn,1,1
    if rs1.recordcount=0 then
       response.Write ""
    else
      if ii mod 8=0 then response.Write "<tr align=center bgcolor=F3F6FA>"
        do while not rs1.eof
          response.write "<td><a href="&rs1("webaddr")&" target=_blank>"&rs1("webname")&"</a></td>"
          ii=ii+1
      if ii mod 8=0 then response.Write("</tr>")
         
     rs1.movenext
          loop
   end if
rs1.close
set rs1=nothing
%>
</table>
2009-12-28 09:25
快速回复:Microsoft VBScript 运行时错误 (0x800A01A8)错误,请教高手
数据加载中...
 
   



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

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