
回答帮我解决给50分 ADODB.Field (0x800A0BCD)BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,
我是新手真的不懂是什么意思。代码在下面希望帮我解答一下最好详细一些!!!先给20分技术信息(用于支持人员)错误类型:ADODB.Field(0x800A0BCD)BOF或...
我是新手 真的不懂是什么意思。
代码在下面 希望帮我解答一下 最好详细一些!!!先给20分
技术信息(用于支持人员)
错误类型:
ADODB.Field (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/ceshi/Untitled-3.asp, 第 28 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /ceshi/Untitled-3.asp
时间:
2008年5月9日, 上午 12:55:28
详细信息:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
Dim rs
Dim rs_numRows
Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_conn_STRING
rs.Source = "SELECT * FROM databast"
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open()
rs_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="760" border="0">
<tr>
<td width="129">姓名:</td>
<td width="621"><%=(rs.Fields.Item("name").Value)%></td>
</tr>
<tr>
<td>性别:</td>
<td><%=(rs.Fields.Item("sex").Value)%></td>
</tr>
</table>
</body>
</html>
<%
rs.Close()
Set rs = Nothing
%> 展开
代码在下面 希望帮我解答一下 最好详细一些!!!先给20分
技术信息(用于支持人员)
错误类型:
ADODB.Field (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/ceshi/Untitled-3.asp, 第 28 行
浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1)
网页:
GET /ceshi/Untitled-3.asp
时间:
2008年5月9日, 上午 12:55:28
详细信息:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="Connections/conn.asp" -->
<%
Dim rs
Dim rs_numRows
Set rs = Server.CreateObject("ADODB.Recordset")
rs.ActiveConnection = MM_conn_STRING
rs.Source = "SELECT * FROM databast"
rs.CursorType = 0
rs.CursorLocation = 2
rs.LockType = 1
rs.Open()
rs_numRows = 0
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>
<body>
<table width="760" border="0">
<tr>
<td width="129">姓名:</td>
<td width="621"><%=(rs.Fields.Item("name").Value)%></td>
</tr>
<tr>
<td>性别:</td>
<td><%=(rs.Fields.Item("sex").Value)%></td>
</tr>
</table>
</body>
</html>
<%
rs.Close()
Set rs = Nothing
%> 展开
1个回答
展开全部
错误在于没有选择出数据,rs是个空记录集,所以运行到
<%=(rs.Fields.Item("name").Value)%>这一句就会出错。
先看看你的数据连接是否有问题,就是数据库的地址有没有写错,
再看 "SELECT * FROM databast"
这一句有没有错,数据表的名要写正确。
<%=(rs.Fields.Item("name").Value)%>这一句就会出错。
先看看你的数据连接是否有问题,就是数据库的地址有没有写错,
再看 "SELECT * FROM databast"
这一句有没有错,数据表的名要写正确。
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询