|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有帐号?立即注册
x
asp可以使用微软的activeX使得网页功能无比强大,不过安全性也较差,而且是基于的windows服务器,所以性能稳定性也一般办理|排序|成绩显现:(排序)main.asp
--------部分,未经优化处置-------
<%
ConstadOpenStatic=3
ConstadLockPessimistic=2
Setconn=Server.CreateObject("ADODB.Connection")
SetRS=Server.CreateObject("ADODB.Recordset")
DBPath=Server.MapPath("../fpdb/massege.mdb")
conn.Open"DRIVER={MicrosoftAccessDriver(*.mdb)};dbq="&DBPath
SQLcmd="Select*FromMASSEGEOrderByA_OrderIDDesc"
RS.OpenSQLcmd,conn,adOpenStatic,adLockPessimistic
page=CLng(Request("txtpage"))
RS.PageSize=30
IfPage<1ThenPage=1
Ifpage>RS.PageCountThenpage=RS.PageCount
RS.AbsolutePage=page
%>
<formaction="main.asp"method="get">
<tablealign="center"border="0"cellspacing="0"cellpadding="0">
<tr>
<tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><ahref="speak.asp"target="rbottom"><fontcolor="#0000FF">讲话</font></a></td>
<tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><ahref="main.asp"><fontcolor="#0000FF">革新</font></a></td>
<tdheight="1"style="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><fontcolor="#0000FF">留言笔数:<%=RS.RecordCount%></font></td>
<tdheight="1"style="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><fontcolor="#0000FF">总页数:<%=RS.PageCount%></font></td>
<tdheight="1"style="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><fontcolor="#0000FF">今朝页次:<%=page%></font></td>
<tdvalign="top"align="left"height="1"style="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><fontcolor="#0000FF">转到<inputtype="text"name="txtpage"size="2"style="font-size:8pt;border-style:dotted;border-width:1">页</font></td>
<tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00">
<fontcolor="#0000FF">
<%
Ifpage1Then
Response.Write"<ahref=main.asp?txtpage=1>第一页</a>"%></font></td>
<tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00">
<fontcolor="#0000FF">
<%Response.Write"<ahref=main.asp?txtpage="&(page-1)&">上一页</a>"%></font></td>
<%
EndIf
IfpageRS.PageCountThen%><tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00">
<fontcolor="#0000FF">
<%Response.Write"<ahref=main.asp?txtpage="&(page+1)&">下一页</a>"%></font></td>
<tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><fontcolor="#0000FF"><%Response.Write"<ahref=main.asp?txtpage="&RS.PageCount&">最初一页</a>"
EndIf
%></font></td>
<tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><ahref="pob_massege.asp"><fontcolor="#0000FF">精髓</font></a></td>
<tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><ahref="baoqian.htm"><fontcolor="#0000FF">检索</font></a></td>
<%
IfApplication("Ukingliu")="kingliu"Then
aaa="on"
Else
aaa="off"
EndIf
%>
<tdstyle="border-left:1solid#FFFF00;border-right:1solid#FFFF00;border-bottom:2solid#FFFF00"><fontcolor="#0000FF">本版斑竹:<ahref="mailto:kingliuzk@chinaren.com">沧海为水</a><imgsrc=http://www.163design.net/a/q/".images/<%=aaa%>.gif"width="15"height="15"></font></td></p>ASP在国内异常流行,因为国内大多使用的是盗版的Windows和盗版的SQLServer,而ASP+COM+SQLServer实际上也是一种不错的搭配,其性能也不输于PHP+MYSQL,特别是Windows系统和SQLServer都有图形界面,比APACHE和MYSQL易于维护,因此对于不重视知识产权的国家来说也是一种不错的选择。 |
|