[100]asp添加分页符代码
发布网友
发布时间:2022-05-01 10:32
我来回答
共1个回答
热心网友
时间:2022-05-19 21:41
假如当前是第3页
const itemCount = 10
dim cur_page_num
cur_page_num=request("page_num") '假如第3页
rst.open sql,cnn,1,1
rst.pagesize=itemCount
rst.move itemCount*cur_page_num
for bound=1 to itemCount
if rst.eof then exit for
response.write "<div>" & rst(读取的field名) & "</div>"
rst.movenext
next
response.write "当前第" & cur_page_num & "页,共" & rst.pageCOunt & "页"
rst.close