日期:2014-05-18  浏览次数:20724 次

javascript按类分页显示问题!
想实现点击产品类型后,显示该类产品,目前已实现,点下一页显示的也是该类下的产品.但目前点击下一页时,就又不能按类显示了.希望高手赐教.
代码如下:  
<table   width= "600 "   border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 ">
                <tr>
                    <td   height= "200 "   background= "images/index_6_r5_bj1.gif "   align= "center ">
                    <%
dim   pageNO,k,searchKey,clsid
searchKey=filterstr(request.form( "searchKey "),2)
pageNO=request.querystring( "pageNO ")

                    clsid=request( "clsid ")
clsid=replace(clsid,chr(44), " ")

if   not   isnumeric(clsid)   then
clsid= " "
else
clsid=cdbl(clsid)
end   if

if   clsid <> " "   then

if   searchKey <> " "   then
strsql= "select   编号,产品型号,产品小图片位置   from   产品库   where   类别编号= "&clsid& "   and   产品型号   like   '% "&searchKey& "% '   or   产品详细说明中文   like   '% "&searchKey& "% '   order   by   编号   desc "
else
strsql= "select     编号,产品型号,产品小图片位置   from   产品库   where   类别编号= "&clsid& "   order   by   编号   desc "
end   if

else

if   searchKey <> " "   then
strsql= "select     编号,产品型号,产品小图片位置   from   产品库   where   产品型号   like   '% "&searchKey& "% '   or   产品详细说明中文   like   '% "&searchKey& "% '   order   by   编号   desc "
else
strsql= "select     编号,产品型号,产品小图片位置   from   产品库   order   by   编号   desc "
end   if

end   if


set   rs=server.createobject( "adodb.recordset ")
rs.open   strsql,conn,3,3
if   not   rs.eof   then
                   
rs.pagesize=10
if   not   isnumeric(pageNO)   then
pageNO=1
elseif   cdbl(pageNO) <1   then
pageNO=1
elseif   cdbl(pageNO)> rs.pageCount   then
pageNO=rs.pageCount
else
pageNO=cint(pageNO)
end   if

rs.absolutepage=pageNO
i=0
                    %>
<table   width= "588 "     border= "0 "   align= "center "   cellpadding= "0 "   cellspacing= "0 "   height= "152 ">
<%
for   k=1   to   2
%>
                        <tr>
                      <%
for   j=1   to   5