ASP一级分类商品信息显示

来源:百度知道 编辑:UC知道 时间:2024/05/08 23:51:39
怎么样点击一级分类把一级分类下的二级分类的商品信息显示出来,高手帮忙啊,代码如下:
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TABLE align="center" cellSpacing=0 cellPadding=0 width=183 border=0>
<TBODY>
<TR>
<TD colspan="2" vAlign=top>

<table cellspacing=1 cellpadding=0 width="183" border=0>
<tbody>
<%
rs.open "select categoryid,category from category where hide=0 and ParentID = 0 order by categoryorder",conn,1,1
if rs.eof and rs.bof then
rs.close
response.Write "<tr><td align=center>还没有商品分类</td></tr>"
else
do while not rs.eof %>
<tr align="center">
<td height=20 colspan="2" valign=center> <a href=b2b_cplist.asp?catid=<% = rs("categoryid"

楼主你的代码是列出所有的商品分类以及各个分类下的各种商品,但是你所说的“点击”是什么意思啊,不是很明白,似乎不是ASP的范畴吧,
如果你说的是点击一个商品分类就在它下面显示该分类下的所有商品信息,而且不要刷新页面的话那你得用Ajax来实现才行了!

10分...打发叫花子呢?