排序方式解决“上下主题”问题(三)

2016-01-29 18:32 6 1 收藏

排序方式解决“上下主题”问题(三),排序方式解决“上下主题”问题(三)

【 tulaoshi.com - ASP 】

  显示:(排序)main.asp

--------部分,未经优化处理-------

<%
Const adOpenStatic = 3
Const adLockPessimistic = 2
Set conn = Server.CreateObject("ADODB.Connection")
Set RS = Server.CreateObject("ADODB.Recordset")
DBPath=Server.MapPath("../fpdb/massege.mdb")
conn.Open "DRIVER={Microsoft Access Driver (*.mdb)};dbq="& DBPath
SQLcmd="Select * From MASSEGE Order By A_OrderID Desc"
RS.Open SQLcmd,conn,adOpenStatic,adLockPessimistic
page = CLng(Request("txtpage"))
RS.PageSize = 30
If Page < 1 Then Page = 1
If page RS.PageCount Then page = RS.PageCount
RS.AbsolutePage = page
%
<form action="main.asp" method="get"
<table align="center" border="0" cellspacing="0" cellpadding="0"
<tr
<td style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"<a href="speak.asp" target="rbottom"<font color="#0000FF"发言</font</a</td
<td style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"<a href="main.asp"<font color="#0000FF"刷新</font</a</td
<td height="1" style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"<font color="#0000FF"留言笔数:<%=RS.RecordCount%</font</td
<td height="1" style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"<font color="#0000FF"总页数:<%=RS.PageCount%</font</td
<td height="1" style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"<font color="#0000FF"目前页次:<%=page%</font</td
<td valign="top" align="left" height="1" style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"<font color="#0000FF"转到<input type="text" name="txtpage" size="2" style="font-size: 8pt; border-style: dotted; border-width: 1"页</font</td
<td style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"
<font color="#0000FF"
<%
If page < 1 Then
Response.Write"<a href=main.asp?txtpage=1第一页</a"%</font</td
<td style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"
<font color="#0000FF"
<%Response.Write"<a href=main.asp?txtpage="&(page - 1)&"上一页</a"%</font</td
<%
End If
If page <RS.PageCount Then%<td style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"
<font color="#0000FF"
<%Response.Write"<a href=main.asp?txtpage="&(page + 1)&"</a" %</font</td
<td style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"<font color="#0000FF"<%Response.Write"<a href=main.asp?txtpage="&RS.PageCount&"最后一页</a"
End If
%</font</td
<td style="border-left: 1 solid #FFFF00; border-right: 1 solid #FFFF00; border-bottom: 2 solid #FFFF00"<a href="pob_massege.asp"<font color="#0000FF"精华</font</a</td
<td style=

来源:https://www.tulaoshi.com/n/20160129/1506264.html

延伸阅读
1、直立式 尽量把宝宝直立抱在肩膀上,以手部的力量将宝宝轻扣着,再用手掌轻拍宝宝的上背,促使宝宝打嗝。 TIPS: 1. 为了防止宝宝溢奶、吐奶,使用直立式时,妈妈可在自己肩膀上垫上小毛巾,方便清洁。 2. 由于依靠手部支撑宝宝直立,当宝宝面朝自己的时候,要注意身体不要捂住宝宝的口和鼻,...
标签: SQLServer
对上亿的表进行排序或者上亿的表之间进行join,会导致系统失去响应。 ◆1.我确实做了一个很大的查询,涉及的数据表有两亿条记录,而且有一个group by操作,造成CPU、内存和磁盘开销均很大。后来和微软的人重新实验了一下,我的查询确实会造成系统反应变慢。后来我们也实验了一下,在这个2亿的表上统计一下行数,即select count(*) from tabl...
标签: Web开发
xhtml+css页面制作过程中问题的解决方案,说是解决方案应该有点过了,充其量只不过是给刚刚开始学标准页面制作的朋友们的一些小建议,如果讲得不对的地方请多多包涵,当然也可以提出你们更好的方法,大家相互学习交流,共同成长! 无论是谁,在制作页面的过程都是会碰到这样或者那样的问题,出了问题就肯定要解决。解决问题的前提是要知道...
一. 方法1 在MySQL中,进行中文排序和查找的时候,对汉字的排序和查找结果是错误的。这种情况在MySQL的很多版本中都存在。如果这个问题不解决,那么MySQL将无法实际处理中文。 出现这个问题的原因是:MySQL在查询字符串时是大小写不敏感的,在编绎MySQL时一般以ISO-8859字符集作为默认的字符集,因此在比较过程中中文编码字符大小写...
标签: 电脑入门
有时在我们安装程序后或使用一些优化清理软件后,win7会突然出现软件快捷图标丢失问题,但是,如果你双击此丢失快捷图标仍然可以启动程序,虽然不影响我们的正常操作,但是却大跌我们的眼球,让人感觉很是不爽。有人也许会尝试在快捷方式属性里更改图标,但结果也是不行。 教程 有人也许会尝试在快捷方式属性里更改图标,但结果也是无济于...

经验教程

222

收藏

83
微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部