ADODB.Field 错误 '80020009'在线等啊~!

来源:百度知道 编辑:UC知道 时间:2024/05/24 09:32:03
ADODB.Field 错误 '80020009'

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

/down_list.asp,行 0

<%dim page
set rs=server.createobject("adodb.recordset")
rs.open "select id,title,content,pic,uid,time from na_down where class="&t&" order by time desc",conn,1,1
if not rs.eof then
page=request("page")
rs.pagesize=20
if page="" then
rs.absolutepage=1
page=1
else
if cint(page)>rs.pagecount then
rs.absolutepage=rs.pagecount
page=rs.pagecount
else
if cint(page)>0 and cint(page)<>0 then
rs.absolutepage=cint(page)
else
rs.absolutepage=1
page=1
end if
end if
end if
for i=1 to rs.pagesize
if rs.eof then
exit for
end if
%>
<table width="100%" border="0" cells

不要用组件里的分页,不方便不灵活
我建议用AJAX
分页时用存储过程取数据
一次取一页的数据

rs.open "select [id],[title],[content],pic,uid,[time] from na_down where [class]="&t&"
试试