资源预览内容
第1页 / 共9页
第2页 / 共9页
第3页 / 共9页
第4页 / 共9页
第5页 / 共9页
第6页 / 共9页
第7页 / 共9页
第8页 / 共9页
第9页 / 共9页
亲,该文档总共9页全部预览完了,如果喜欢就下载吧!
资源描述
ASP网页设计代码之产品展示界面亲爱的读友们,下面的代码是我平常工作时会做到的代码,所谓好东西大家一起分享,希望你们看了能够顺利的做出来哦最初一定要新建一个文件夹,无论放在哪里都可以,路径是虚拟路径。但是一定要吧下面几个创建的文件放在同一个文件夹里面。1.创建一个pro1.asp添加以下代码,这里我已经简化成最简化了。所以基本不用再继续删减了。无标题文档 % Bigclassname=Request(Bigclassname) Smallclassname=Request(Smallclassname)set rs=server.createobject(adodb.recordset)if Request(Bigclassname)= thensql=select top 700 * from product order by product_IDend ifif Request(Bigclassname) and request(smallclassanme)=thensql=select * from product where bigclassname=&Bigclassname& order by product_ID end ifif Request(Bigclassname) and request(smallclassname) thensql=select * from product where bigclassname=&Bigclassname& and Smallclassname =&smallclassname&order by product_ID descend ifrs.open sql,conn,1,1if rs.eof or rs.bof thenresponse.write 暂时没有产品记录!end ifif request(page)= thenpage=1elsepage=cint(request(page)end ifrs.pagesize=12rs.absolutepage=pageurl=Pro1.asp?BigClassName=&BigClassName&SmallClassName=&SmallClassName&page=%       a href=proshow.asp?id= target=_blankimg src= width=150 height=150 border=0 / %if i mod 4=0 thenresponse.write( )end ifrs.movenextif rs.eof then exit fornext% 1 then% a href=首页  a href=上一页   %if page a href=下一页  a href=尾页  当前第/页 %sub ShowClassGuide()response.write  产品 >>if BigClassName= and SmallClassName= thenresponse.write  所有产品elseif BigClassName thenresponse.write   & BigClassName &  >> if SmallClassName thenresponse.write & SmallClassName & elseresponse.
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号