<%if not(rs.bof and rs.eof) then
rs.move (cint(nocepage)-1)*10,1
for i=1 to rs.pagesize%>
谁能帮我解释一下后面两句是什么意思啊(是有关分页的代码),小弟无限感激。
[此贴子已经被作者于2005-12-29 10:55:03编辑过]
<%if not(rs.bof and rs.eof) then
numrecord=rs.recordcount
rs.pagesize=10
numpage=rs.pagecount
if request("page")=empty then
noncepage=1
else
if cint(request("page"))<1 then
noncepage=1
else
noncepage=request("page")
end if
if cint(trim(request("page")))>cint(numpage) then noncepage=numpage
end if
else
numrecord=0
numpage=0
noncepage=0
end if
%>
<table border="1" width="700" bordercolorlight="#000000" cellspacing="0" bordercolordark="#ffffff">
<tr><td width="93" bgcolor="#ebe9fe" align="center">准考证号</td>
<td width="94" bgcolor="#ebe9fe" align="center">姓名</td>
<% if not(rs.bof and rs.eof) then
rs.move (cint(noncepage)-1)*10,1
for i=1 to rs.pagesize%>
<tr><td width="93" align="center"><%=rs("user_testnumber")%></td>
<td width="94" align="center"><%=rs("user_name")%></td>
<%rs.movenext
if rs.eof then exit for
next
else
......
%>