asp+sql2000存儲(chǔ)過(guò)程分頁(yè)實(shí)例(4)_ASP教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
推薦:ASP點(diǎn)擊刷新驗(yàn)證碼實(shí)例代碼現(xiàn)在網(wǎng)站上大部分的驗(yàn)證碼都是圖片驗(yàn)證碼,就跟 http://dwww.cn/Books.asp 下邊的一樣。 用戶(hù)可能長(zhǎng)時(shí)間的停留在頁(yè)面上,等到最后提交的時(shí)候,驗(yàn)證碼就可能過(guò)期了。所以要加個(gè)刷新的功能。 驗(yàn)證碼:input name='checkimg' type='text' class='input' id='che
<table width="800" height="46" border="1" align="center">
<form action="list.asp" method="post">
<tr>
<td colspan="3">關(guān)鍵字:<input type="text" name="key" /> <input type="radio" value="how" name="kind" />功能<input type="radio" checked="checked" value="what" name="kind" />產(chǎn)品<input type="radio" value="ip" name="kind" />廠家
<input type="submit" name="Submit" value="搜 索" />
</td>
</tr></form>
</table>
<table width="800" height="46" border="1" align="center">
<tr>
<td height="35" align="center"><strong>代理區(qū)域</strong></td>
<td align="center"><strong>要求代理品種 </strong></td>
<td height="35" align="center"><strong>性質(zhì)</strong></td>
<td height="35" align="center"><strong>發(fā)布時(shí)間</strong></td>
</tr>
<%
do while not rs.eof
%>
<tr>
<td height="30"><%=rs("id")%></td>
<td height="30"><%=rs("ip")%></td>
<td height="30"><%=rs("into_time")%></td>
<td height="30"> </td>
</tr>
<%
rs.movenext
loop
%>
</table>
<table width="800" height="46" border="1" align="center">
<form action="list.asp" method="post" name="fenye" onsubmit="return checkpage()">
<tr>
<td colspan="3" align="center">共<%=TotalRs%>條 <%=PageNum%>條/頁(yè) 當(dāng)前第<%=Page%>/<%=TotalPage%>頁(yè)
<%if TotalPage=1 or TotalPage=0 then
response.Write " 首頁(yè) 上一頁(yè) 下一頁(yè) 末頁(yè)"
else
%>
<%if page=1 then
response.Write" 首頁(yè) 上一頁(yè) <a href='list.asp?page="&page+1&"&key="&key&"&kind="&kind&"&trs="&trs&"&tpa="&tpa&"'>下一頁(yè)</a> <a href='list.asp?page="&TotalPage&"&key="&key&"&kind="&kind&"&trs="&trs&"&tpa="&tpa&"'>末頁(yè)</a>"
end if%>
<%if page>1 and page<TotalPage then
response.Write"<a href='list.asp?page=1&key="&key&"&kind="&kind&"&trs="&trs&"&tpa="&tpa&"'>首頁(yè)</a> <a href='list.asp?page="&page-1&"&key="&key&"&kind="&kind&"&trs="&trs&"&tpa="&tpa&"'>上一頁(yè)</a> <a href='list.asp?page="&page+1&"&key="&key&"&kind="&kind&"&trs="&trs&"&tpa="&tpa&"'>下一頁(yè)</a> <a href='list.asp?page="&TotalPage&"&key="&key&"&kind="&kind&"&trs="&trs&"&tpa="&tpa&"'>末頁(yè)</a>"
end if
end if
%>
<%if page=TotalPage then
response.Write"<a href='list.asp?page=1&key="&key&"&kind="&kind&"&trs="&trs&"&tpa="&tpa&"'>首頁(yè)</a> <a href='list.asp?page="&page-1&"&key="&key&"&kind="&kind&"&trs="&trs&"&tpa="&tpa&"'>上一頁(yè)</a> 下一頁(yè) 末頁(yè)"
end if%>
轉(zhuǎn)到第<input id="gopage" maxlength="10" size="5" value="<%=page%>" name="page"/>頁(yè)<input id="submit123" type="submit" value="Go" name="submit123"/><input type="hidden" value="<%=TotalRs%>" name="trs"/><input type="hidden" value="<%=TotalPage%>" name="tpa"/>
<input type="hidden" name="keyword" value="<%=keyword%>"/><input type="hidden" name="kind" value="<%=kind%>"/></td>
</tr>
</form>
</table>
</body>
</html>
<%
rs.close
set rs=nothing
conn.close
set conn=nothing
%>
來(lái)源:csdn
分享:ASP實(shí)現(xiàn)js圖片的輪顯下午做了一個(gè)asp+js實(shí)現(xiàn) 圖片的輪顯的效果,效果圖 如: 左側(cè)的圖片輪顯,在 我用的是js,然后我改了一下用asp實(shí)現(xiàn)效果 的。 pic.asp源代碼: % '連接數(shù)據(jù)庫(kù)代碼省去了 sql=(select * from Pic order by picorder asc,id desc) Set rs=server.CreateObject(
相關(guān)ASP教程:
- asp FSO 讀寫(xiě)文件本文件實(shí)現(xiàn)代碼
- asp中isNull、isEmpty和空字符串的區(qū)別
- asp獲取用戶(hù)真實(shí)IP地址的方法
- asp連接sqlserver數(shù)據(jù)庫(kù)實(shí)現(xiàn)代碼
- asp中正則表達(dá)式過(guò)濾html代碼函數(shù)
- asp中g(shù)et post提交表單區(qū)別
- 網(wǎng)頁(yè)模板:ASP內(nèi)建對(duì)象Request
- xmlhttp的open方法使用詳解
- ASP的常用的自定義函數(shù)大全
- asp中用for循環(huán)的一個(gè)小技巧
- eWebEditor v3.8 列目錄
- ASP無(wú)組件分頁(yè)實(shí)現(xiàn)思路及代碼
ASP教程Rss訂閱編程教程搜索
ASP教程推薦
- 服務(wù)端 VBScript 與 JScript 幾個(gè)相同特性的寫(xiě)法
- Asp三級(jí)聯(lián)動(dòng)下拉菜單數(shù)據(jù)庫(kù)版(含源程序)
- 技巧:得到剛剛插入的記錄的自動(dòng)編號(hào)值一例
- ASP程序直接連接MYSQL數(shù)據(jù)庫(kù)
- ASP初學(xué)者常犯的幾個(gè)錯(cuò)誤
- asp教程之如何橫向顯示數(shù)據(jù)代碼
- Asp Fso文件/文件夾操作類(lèi)
- 關(guān)于網(wǎng)頁(yè)跳轉(zhuǎn)代碼的簡(jiǎn)介
- String.indexOf 方法介紹
- 淺析ASP中的Debug類(lèi)--VBScript
- 相關(guān)鏈接:
- 教程說(shuō)明:
ASP教程-asp+sql2000存儲(chǔ)過(guò)程分頁(yè)實(shí)例(4)
。