一个网页问题,请帮忙

王朝知道·作者佚名  2009-08-03
窄屏简体版  字體: |||超大  
 
分類: 電腦/網絡 >> 互聯網
 
問題描述:

我做了一个搜索页面,总是出错:

错误类型:

ADODB.Field (0x800A0BCD)

BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。

/cyxjcy/connect/JCY/Jcyllyj/serch3.asp, 第 56 行

附代码:

<%@LANGUAGE="VBSCRIPT"%>

<!--#include file="../../../Connections/cyxjcy.asp" -->

<%

Dim Recordset1__acc

Recordset1__acc = "1"

If (request.form("textfield") <> "") Then

Recordset1__acc = request.form("textfield")

End If

%>

<%

Dim Recordset1

Dim Recordset1_numRows

Set Recordset1 = Server.CreateObject("ADODB.Recordset")

Recordset1.ActiveConnection = MM_cyxjcy_STRING

Recordset1.Source = "SELECT * FROM CYXJCYllyj WHERE Btitle like '%" + Replace(Recordset1__acc, "'", "''") + "%' ORDER BY ID DESC"

Recordset1.CursorType = 0

Recordset1.CursorLocation = 2

Recordset1.LockType = 1

Recordset1.Open()

Recordset1_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="697" border="0" cellpadding="0" cellspacing="0">

<!--DWLayoutTable-->

<tr>

<td width="697" height="96">标题名称包括

<form id="form1" name="form1" method="post" action="founds2.asp">

<label>

<input type="text" name="textfield" />

</label>

<label>

<input type="submit" name="Submit" value="提交" />

</label>

</form>

</td>

</tr>

</table>

<table width="697" border="0" cellpadding="0" cellspacing="0">

<!--DWLayoutTable-->

<tr>

<td width="697" height="145" valign="top"><table width="360" border="0">

<tr>

<td>标题</td>

<td>作者</td>

</tr>

<tr>

<td><%=(Recordset1.Fields.Item("Btitle").Value)%></td>

<td><%=(Recordset1.Fields.Item("Bwriter").Value)%></td>

</tr>

</table></td>

</tr>

</table>

</body>

</html>

<%

Recordset1.Close()

Set Recordset1 = Nothing

%>

參考答案:

用的是什么浏览器?

小贴士:① 若网友所发内容与教科书相悖,请以教科书为准;② 若网友所发内容与科学常识、官方权威机构相悖,请以后者为准;③ 若网友所发内容不正确或者违背公序良俗,右下举报/纠错。
 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航