注册 登录
编程论坛 ASP技术论坛

请高手!错误类型:(0x80020009)(小白)

lp283041598 发布于 2011-06-28 17:47, 494 次点击
<!--#include file="inc/conn.asp" -->
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<%
    dim str
    str="select * from admin"
    set rs=conn.execute(str)
    response.Write(rs("admin")+"aaaaaaa")
    rs.close
    set rs=nothing
%>
</body>
</html>
错误类型:(0x80020009)
发生意外。
/textconn.asp, 第 13 行
3 回复
#2
lp2830415982011-06-28 18:10
没人吗?
#3
mdjpp2011-06-29 09:18
以下是引用lp283041598在2011-6-28 17:47:09的发言:
错误类型:(0x80020009)
发生意外。
/textconn.asp, 第 13 行

<!--#include file="inc/conn.asp" -->
<html >
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>

<body>
<%
    dim str
    Set rs=Server.CreateObject("ADODB.Recordset")
    str="select * from admin"
    rs.Open str,Conn,1,1
    if not rs.eof and not rs.bof then
    response.Write(rs("admin")&"aaaaaaa")       '出错行吗
    end if
    rs.close
    set rs=nothing
%>
</body>
</html>
#4
huizia2011-06-29 15:12
出错行呢?
1