[100]asp添加分页符代码 20
1个回答
展开全部
假如当前是第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
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询