zoukankan      html  css  js  c++  java
  • ASP分页

    分页:
    <%
    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
     
    %>

  • 相关阅读:
    04.设备
    03.抖音课程大纲2
    02.抖音课程大纲
    01 抖音直播现状
    1.14常见的5种字符编码特征
    1.13BeautifulSoup 剔除 HTML script 脚本;删除指定 class标签
    Ng Alain使用
    MediatR
    RN错误随笔
    1.RN环境搭建,创建项目,使用夜神模拟调试
  • 原文地址:https://www.cnblogs.com/tdalcn/p/671815.html
Copyright © 2011-2022 走看看