搜索页jieguo.asp处理搜索关键词并显示出来的代码:
————————————————————————————————
<%
bt="%"&request("sous")&"%"
if request("hcgood")<>"" then session("hcgood")=request("hcgood")
sql = "select * from shuju where bt like '"&bt&"' and cs='0771' order by gx2 desc"
Set rs = Server.CreateObject("ADODB.RecordSet")
rs.Open sql,conn,1,1
if rs.recordcount=0 then
response.write "<br> 共找到<font color=#ff0000> 0 </font>条您所需要的信息!"
response.end
end if
page=int(request.QueryString ("page"))
rs.PageSize=40
pagecount=rs.pagesize
if page<=0 then page=1
if request.QueryString("page")="" then page=1
rs.AbsolutePage=page
gg=rs.recordcount/pagecount
gh=int(gg)
if gh<=1 then gh=1
if gg>gh then gh=gh+1
gg=gh
%>
————————————————————————————————
显示分页的部分:
————————————————————————————————
<%
if page<>1 then
%>
<a href='jieguo.asp?sous=<%=request("sous")%>?page=<%=page-1%>'>上一页</a>
<%end if%>
<%if rs.eof then%>
<%else%>
<a href='jieguo.asp?sous=<%="&request('sous')&"%>?page=<%=page+1%>'>下一页</a>
<%end if%>
一切正常,就是点“下一页”就乱码了