asp产品展示界面网页代码介绍

上传人:F****n 文档编号:90412156 上传时间:2019-06-11 格式:DOC 页数:9 大小:64KB
返回 下载 相关 举报
asp产品展示界面网页代码介绍_第1页
第1页 / 共9页
asp产品展示界面网页代码介绍_第2页
第2页 / 共9页
asp产品展示界面网页代码介绍_第3页
第3页 / 共9页
asp产品展示界面网页代码介绍_第4页
第4页 / 共9页
asp产品展示界面网页代码介绍_第5页
第5页 / 共9页
点击查看更多>>
资源描述

《asp产品展示界面网页代码介绍》由会员分享,可在线阅读,更多相关《asp产品展示界面网页代码介绍(9页珍藏版)》请在金锄头文库上搜索。

1、ASP网页设计代码之产品展示界面亲爱的读友们,下面的代码是我平常工作时会做到的代码,所谓好东西大家一起分享,希望你们看了能够顺利的做出来哦最初一定要新建一个文件夹,无论放在哪里都可以,路径是虚拟路径。但是一定要吧下面几个创建的文件放在同一个文件夹里面。1.创建一个pro1.asp添加以下代码,这里我已经简化成最简化了。所以基本不用再继续删减了。无标题文档 % Bigclassname=Request(Bigclassname) Smallclassname=Request(Smallclassname)set rs=server.createobject(adodb.recordset)if

2、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 * f

3、rom 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?BigCla

4、ssName=&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=上一页  

5、%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.

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号