各位帮忙看一下,小弟不胜感激!
海大富运动 2004-02-02 10:05:24 错误类型:
ADODB.Recordset (0x800A0BCD)
BOF 或 EOF 中有一个是“真”,或者当前的记录已被删除,所需的操作要求一个当前的记录。
/www/nei/sub_paper.asp, 第 38 行
sub_paper.asp文件的sql代码是这样的
<!--#include file=../system/include/config.asp-->
<!--#include file=../share/conn_news.asp-->
<!--#include file=../system/include/function.asp-->
<html>
<head>
<title><%=title%></title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link rel="stylesheet" href="../style.css" type="text/css">
</head>
<%
dim strSql,rs,i,PageNo,yy
if request("type")="" then
response.write "对不起,参数出错了!请重新访问此页!"
response.end
end if
if request("type")=1 then
yy="购房指南"
end if
if request("type")=2 then
yy="租房指南"
end if
if request("type")=3 then
yy="政策法规"
end if
if request("type")=4 then
yy="银行贷款"
end if
if request("type")=5 then
yy="家居装饰"
end if
if request("type")=6 then
yy="土地评估"
end if
strSql="select * from [paper] where id=" & request("id")
set rs=Server.CreateObject("ADODB.RecordSet")
rs.open strSql,conn,3,3
sub showContent
dim i
i=0
%>
<%do while not rs.eof%>
<% i=i+1
if i>=MaxPerPage then exit do
rs.movenext
loop%>
<%
rs.update
end sub
%>
问题是后台对新闻进行删除后,主页无法更新,那位大哥帮忙一下