请问为什么asp没有上一页跟下一页
时间:2011-10-31
来源:互联网
SQL code
我希望呈现的样子是↓
< 1 2 3 4 5 6 7 8 9 10 >
按下">"时出现↓
< 11 12 13 14 15 16 17 18 19 20 >
可为什么他现在变成
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
都在同一页呢???
<% function Text2Html( text ) text = replace(text,">",">") text = replace(text,"<","<") text = replace(text,chr(32)," ") text = replace(text,chr(13),"") text = replace(text,chr(10),"<br>") Text2Html = text end function on Error Resume Next '每页显示笔数 pagggeCount = 10 paggge = request("paggge") if paggge = "" then paggge = 1 end if '資料庫連結 SQLSS = 'SQL指令 set rs = Server.CreateObject("ADODB.Recordset") rs.open SQLSS,conn,3,3,1 if rs.recordcount <> 0 then rs.pagggeSize = pagggeCount rs.Absolutepaggge = paggge for i = 1 to rs.pagggeSize if rs.eof then exit for end if %> <table width="600" height="400"> <tbody> <tr> <td width="30" ><span class="style6">aaa</span></td> <td width="50" ><%=rs("aa")%></td> <td width="60" ><span class="style6">bbb</span></td> <td width="30" ><%=rs("bb")%></td> </tr> <tr> <td width="30" ><span class="style6">ccc</span></td> <td width="50" ><%=rs("cc")%></td> <td width="60" ><span class="style6">ddd</span></td> <td width="30" "><%=rs("dd")%></td> </tr> </tbody> </table> <% rs.MoveNext next %> <!-- div pagination begin --> <div class="pagination"> <% for i = 1 to rs.pagggeCount if cint(i) = cint(paggge) then response.write "<span class ='current'>" & i & "</span>" else response.write "<a href='#' onClick='tolinks(" & i & ");'> " & i & " </a>" end if next %> </div> <!-- div pagination end-->
我希望呈现的样子是↓
< 1 2 3 4 5 6 7 8 9 10 >
按下">"时出现↓
< 11 12 13 14 15 16 17 18 19 20 >
可为什么他现在变成
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
都在同一页呢???
作者: kiken10 发布时间: 2011-10-31
<%
for i = 1 to rs.pagggeCount
if cint(i) = cint(paggge) then
response.write "<span class ='current'>" & i & "</span>"
else
response.write "<a href='#' onClick='tolinks(" & i & ");'> " & i & " </a>"
end if
next
%>
你这段要进行判断额
当前选择页大于10的时候
显示当前页码 >10<=20的页码
for i = 1 to rs.pagggeCount
if cint(i) = cint(paggge) then
response.write "<span class ='current'>" & i & "</span>"
else
response.write "<a href='#' onClick='tolinks(" & i & ");'> " & i & " </a>"
end if
next
%>
你这段要进行判断额
当前选择页大于10的时候
显示当前页码 >10<=20的页码
作者: enjoy_gw 发布时间: 2011-10-31
帮顶。。。。。
作者: From_TaiWan 发布时间: 2011-10-31
可是我在
<%
for i = 1 to rs.pagggeCount
if cint(i) = cint(paggge) then
response.write "<span class ='current'>" & i & "</span>"
else
response.write "<a href='#' onClick='tolinks(" & i & ");'> " & i & " </a>"
end if
next
%>
已经有说只有1~10了>"<
难道这样还不行吗?
<%
for i = 1 to rs.pagggeCount
if cint(i) = cint(paggge) then
response.write "<span class ='current'>" & i & "</span>"
else
response.write "<a href='#' onClick='tolinks(" & i & ");'> " & i & " </a>"
end if
next
%>
已经有说只有1~10了>"<
难道这样还不行吗?
作者: kiken10 发布时间: 2011-10-31
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28