哪位大哥有ASP分页的函数

lovefm105 2006-07-22 10:35:46
最好是有一个例子
在线等
小弟先谢谢了
...全文
156 5 打赏 收藏 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
18320606 2006-07-23
  • 打赏
  • 举报
回复
网上有分页的类,自己去下个,个性化地修改一下就好了,使用起来比函数还方便
liangzhunyu 2006-07-22
  • 打赏
  • 举报
回复
楼上这个方法,是好慢的
xiaoqiang08 2006-07-22
  • 打赏
  • 举报
回复
代码如下:这个比较简单.
好好看看吧!
<!--#include file="conn.asp"-->
<%
rs.open "select * from data",cn,1,1
count=1'留言显示条数
rs.pagesize=count
rc=rs.recordcount
pgnm=rs.pagecount
page=Request.Querystring("page")
If page<>"" then page=clng(page)
If page="" or page=0 then page=1
If page>pgnm then page=pgnm
If pgnm>1 then rs.absolutepage=page
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>分页</title>
</head>
<body>
<div align="center">
<table border="0" width="19%" id="table1" height="72" style="border-collapse: collapse">
<%do while not rs.eof and count>0
count=count-1%>
<tr>
<td rowspan="2" align=center valign=middle><%=rs("name")%></td>
<td><%=rs("text")%></td>
</tr>
<%rs.movenext
loop
rs.close%>

<tr>
<td height="20" align=center valign=bottom><% If page>1 and pgnm>1 then %><a href="?page=<%=page-1%>&qq=<%=qq%>" class="STYLE1">上一页</a>
<%End If
If page<pgnm and pgnm>1 then
%> <a href="?page=<%=page+1%>&qq=<%=qq%>" class="STYLE1">下一页</a> <% End If %></td>
</tr>
</table>
</div>
</body>
</html>
lovefm105 2006-07-22
  • 打赏
  • 举报
回复
有好多都 不行~
也看不明白
街头小贩 2006-07-22
  • 打赏
  • 举报
回复
网上有的是通用分页函数!自已去百度一下吧

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧