闂佽 鍋撻柟顖滃椤ワ拷 (0) +1 闁荤姍宥嗗 (0) +1 闂傚⿴浜烽幏锟� (0) +1
闂佽 鍋撻柟顖滃椤ユ垿鏌熺€涙ê濮囧┑顕嗘嫹闂佸搫琚崕鍐诧耿閸涙潙缁╅柟顖滃椤ワ拷>>

正在阅读:asp 用存储过程实现数据分页asp 用存储过程实现数据分页

2005-06-11 11:19 出处: 作者:佚名 责任编辑:moningfeng
四、search_koushi.asp

<!-- #include file="conn.asp" --> <% line=6 if request("page")="" then page=1 else page=request("page") end if
if page<1 then page=1 end if
title=trim(request("title")) list2_id=trim(request("list2_id")) set rs2=conn.execute("sp_c 'tiku_koushi','"&title&"','"&list2_id&"'") pagecount=CInt(rs2(0)\line) if(CInt(rs2(0)) mod line)=0 then pagecount=pagecount else pagecount=pagecount+1 end if
if CInt(page)>=pagecount then page=CInt(pagecount) end if str="" str=str&"page="&page&"&title="&title&"&list2_id="&list2_id set rs=conn.execute
("sp_search_tiku 'tiku_koushi','"&title&"','"&list2_id&"','"&line&"','"&CInt(page)&"'") if rs.eof then response.write "no record"

键盘也能翻页,试试“← →”键

关注我们

最新资讯离线随时看 聊天吐槽赢奖品
闂佸綊娼ч鍡椻攦閳ь剟鎮规担鍛婂仴婵☆偓鎷�闂佹悶鍎抽崑娑㈠春鐏炰勘浜滈柛顐f礀閸旓拷