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

来源:百度文库 编辑:高校问答 时间:2024/05/07 04:42:11
<td width="70%" height="20" align="right" valign="middle" class="font">共<font color="#FF2D00">[<%=rc.RecordCount%>]</font>条 今日更新<font color="#FF2D00">[<%=todayRecord%>]</font>条
分<font color="#FF2D00"><%=rc.pagecount%></font>页 <font color="#FF2D00"><%=rc.pagesize%></font>条/页
当前第<font color="#FF2D00"><%=Page%></font>页 <a href="?Page=1">首页</a>
<%if Page>1 then%>
<a href="class.asp?class=<%=rc("News_Class")%>&Page=<%=Page-1%>">上页</a>
<%else%>
上页
<%end if%>
<%if Page < rc.pagecount then %>
<a href="class.asp?class=<%=rc("News_Class")%>&Page=<%=Page+1%>">下页</a>
<%else%>
下页
<%end if%>
<a href=?Page=<%=rc.pagecount%>>尾页</a>
<input name="Page" type="text" class="input" id="Page" value="<%=Page%>" size="3">
<input name="Submit2" type="submit" class="button" value="转到该页">
</td>

你的数据库中还没有记录或者指针已经到达了末尾。

应该是你查出的东西没有数据,一条也没有就是这样

if rs.eof then
no
end if