分页:
<%
IF (cint(rs.PageCount))>1 THEN

 IF cint(cur) = 1 then
  Response.write ("<a href="&curfile&"?keyword="&keyword&"&serType="&serType&"&cur=" & (cur+1) & "> [下一页] </a>")
  Response.write ("<a href="&curfile&"?keyword="&keyword&"&serType="&serType&"&cur=" & cint(rs.PageCount) & "> [末 页] </a>")
 ELSEIF cint(cur) = cint(rs.PageCount) THEN
  Response.write ("<a href="&curfile&"?keyword="&keyword&"&serType="&serType&"&cur=1> [首 页] </a>")
  Response.write ("<a href="&curfile&"?keyword="&keyword&"&serType="&serType&"&cur=" & (cur-1) & "> [上一页] </a>")
 ELSE
  Response.write ("<a href="&curfile&"?keyword="&keyword&"&serType="&serType&"&cur=1> [首 页] </a>")
  Response.write ("<a href="&curfile&"?keyword="&keyword&"&serType="&serType&"&cur=" & (cur-1) & "> [上一页] </a>")
  Response.write ("<a href="&curfile&"?keyword="&keyword&"&serType="&serType&"&cur=" & (cur+1) & "> [下一页] </a>")
  Response.write ("<a href="&curfile&"?keyword="&keyword&"&serType="&serType&"&cur=" & cint(rs.PageCount) & "> [末 页] </a>")
 END IF

END IF

%>

分页set:
<%
 cur = Request("cur")

 IF cur = "" or cur < 1 THEN cur = 1

 rs.PageSize = perPageSize

 IF cint(cur) > cint(rs.PageCount) THEN
 cur = cint(rs.PageCount)
 END IF

 rs.AbsolutePage = cint(cur)
    
 datacount = 1
 
%>

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-25
  • 2021-09-03
  • 2021-07-26
  • 2021-09-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-21
  • 2021-12-11
  • 2021-05-16
  • 2022-01-15
  • 2021-06-25
相关资源
相似解决方案