社区
ASP
帖子详情
在ASP中数据较多时怎样实现分页显示?
ask999
2003-11-10 11:35:35
如题,请给出完整代码.谢谢
...全文
33
6
打赏
收藏
在ASP中数据较多时怎样实现分页显示?
如题,请给出完整代码.谢谢
复制链接
扫一扫
分享
转发到动态
举报
AI
作业
写回复
配置赞助广告
用AI写文章
6 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
blueice2002
2003-11-10
打赏
举报
回复
http://expert.csdn.net/Expert/topic/2437/2437534.xml?temp=.4696009
junsisi
2003-11-10
打赏
举报
回复
http://www.5ienet.com/guestbook/default.asp
看看这个,下头有源码的下载
俺自已觉着这个是俺写过的最好的分页代码~~
aimei2003
2003-11-10
打赏
举报
回复
1。
<%
function showpage(totalnumber,maxperpage,filename)
Response.Write("<tr><td><br>")
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
if n<=1 then exit function
response.write "<p align='center'> "
if CurrentPage<2 then
response.write "<font color='#000080'>首页 上一页</font> "
else
response.write "<a href="&filename&"?page=1&fid="& fid & "&sid=" & sid & "&tid=" & tid &">首页</a> "
response.write "<a href="&filename&"?page="¤tPage-1&"&fid="& fid & "&sid=" & sid & "&tid=" & tid & ">上一页</a> "
end if
if n-currentpage<1 then
response.write "<font color='#000080'>下一页 尾页</font>"
else
response.write "<a href="&filename&"?page="& (CurrentPage+1) & "&fid=" & fid & "&sid=" & sid & "&tid=" & tid&">"
response.write "下一页</a> <a href="&filename&"?page="&n&"&fid="& fid & "&sid=" & sid & "&tid=" & tid &">尾页</a>"
end if
response.write "<font color='#000080'> 页次:</font><strong><font color=red>"¤tPage&"</font><font color='#000080'>/"&n&"</strong>页</font> "
response.write "<font color='#000080'> 共<b>"&totalnumber&"</b>篇文章 <b>"&maxperpage&"</b>篇文章/页</font> "
' response.write " <font color='#000080'>转到:</font><input type='text' name='page' size=4 maxlength=10 class=smallInput value="¤tpage&">"
response.write "</span></p>"
Response.Write("</td></tr>")
end function
%>
2。
<% dim page,totle,no,n,ye
totle=0
n=20
pagesize=n
page=request("no")
no=rs.absolutepage
rs.movefirst
do while not rs.eof
totle=totle+1
rs.movenext
loop
ye=int(totle/n*-1)*-1
if page<1 then
page=1
end if%>
<% rs.movefirst
rs.move((page-1)*20)
y=((page-1)*20)
while y<((page-1)*20)+20 and y<totle
%>
<table border="0" width="750" bgcolor="">
<td bgcolor="#FFFFCC">
<font size="3" color="#3300FF"><b><img src="dafeiliu/<%=rs("image")%>" alt="个性头像">留言者:<font size="4" color="#FF00CC"><%=rs("name")%></font>:于<%=rs("time")%>,<font size="4" color="#FF0000">Email:<a href="mailto:<%=rs("email")%>"></font></b><img src="pic/gif1/mail.gif" width="40" height="32" border="2" alt="信箱"></font></a> <a href="<%=rs("page")%>" target="_blank"><img src="pic/gif1/page.gif" width="40" height="32" border="0" alt=""></a>
<p><font size="4" color="#FF00CC"><%=rs("name")%></font>的留言是:<br>
<table border="2" bordercolor="#FF0066">
<tr>
<td width="750" height="80"><%=rs("word")%></td>
</tr>
</table>
</p>
</table>
<% rs.movenext
y=y+1
wend
rs.close %><br>
<%response.write"<a href=dafei3.asp?no="&page-1&"><font size=3 color=#CCCC66>上一页</font></a>"%>共有留言<font size="4" color="#FF0000"><%=totle%></font>条 <font size="4" color="#FF66FF"><%=ye%></font>页 当前是第<font size="4" color="#33FF33"><%=page%></font>页
<%response.write"<a href=dafei3.asp?no="&page+1&"><font size=3 color=#FF00FF>下一页</font></a>"%><p>
DBApower
2003-11-10
打赏
举报
回复
我这里我多个最简单的分页
并且有我写的最简单的分页
比起网上写的繁杂的难理解的分页不止要好多少倍
your e-mail is?
MY e-mail : seeyouknowme@163.com
popcode
2003-11-10
打赏
举报
回复
搜索一下,多的是!!!
PS:自己动手丰衣足食!
ask999
2003-11-10
打赏
举报
回复
谢谢seeyouc()!
我的MAIL: ydj@ynadult.com
ASP
.net
中
大结果集的
分页
尤其是在使用
ASP
.NET框架进行开发时,如何优雅地处理
数据
库
中
的大量
数据
并合理地进行
分页
,成为了一项关键技术挑战。本篇文章将详细介绍在
ASP
.NET
中
处理大结果集
分页
的方法及其背后的原理,旨在为开发者提供一种优化...
.net
分页
asp
.net
分页
在
实现
分页
时,还需要考虑一些额外因素,例如跳转到指定页数的功能,
显示
总页数和当前页数,以及处理页数变化时的
数据
绑定和刷新。 总结一下,.NET
分页
和
ASP
.NET
分页
是处理大量
数据
的关键技术。理解服务器端
分页
和...
asp
.net文章
分页
在
ASP
.NET开发
中
,文章
分页
是一个非常常见的需求,尤其在处理大量
数据
展示时,如新闻、博客或者论坛。
分页
能有效地提高用户体验,避免一次性加载过多内容导致页面响应变慢。本文将深入探讨如何在
ASP
.NET
中
实现
文章的...
js
分页
实例
asp
服务端
在网页开发
中
,
分页
是一种常见的
数据
展示方式,特别是在
数据
量较大的情况下,为了提高用户体验,避免一次性加载所有
数据
导致页面加载缓慢或者用户滚动困难。在这个“js
分页
实例
asp
服务端”的示例
中
,我们将探讨如何...
asp
数据
控件
分页
技术
ASP
.NET
中
的
数据
控件
分页
技术是Web应用程序开发
中
常用的一种功能,用于处理大量
数据
时提高页面性能和用户体验。在
ASP
.NET
中
,多种
数据
控件如GridView、Repeater、ListView等都支持内置的
分页
功能。本教程将详细介绍...
ASP
28,409
社区成员
356,971
社区内容
发帖
与我相关
我的任务
ASP
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
复制链接
扫一扫
分享
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章