dnf打团阵容:大家帮我看一下ASP分页程序循环分析

来源:百度文库 编辑:高校问答 时间:2024/04/20 14:14:42
程序如下:
我想用FOR和while试试读取数据库分页,可最后那三句我实在弄不成了,无论wend 、next、rs.movenext怎么放都无法实现,是不是用FOR和while无法实现?
<%
for i=1 to rs.pagesize
while not rs.eof
%>
<tr><td><%=rs(0)%></td>
<td><%=rs(1)%></td>
<td><%=rs(2)%></td>
<td><%=rs(3)%></td>
<td><%=rs(4)%></td>
<td><%=rs(5)%></td>
</tr>
<%
wend
next
rs.movenext
%>

只用for就可以了为什么里面还加个while循环呢?

把while循环去掉