请教ASP高手一行多列显示问题

来源:百度知道 编辑:UC知道 时间:2024/05/06 14:09:19
我要显示的效果如下

产品一 产品二 产品三

产品四 产品五 产品六

...

下面的代码只显示一列。请高手帮我改下。谢谢!
<!--#include file="../include/connstr.asp"-->
<!--#include file="../include/DefFunction.asp"-->
<%
PageNo=request("PageNo")
CateName=request("CateName")
if request("CateID")="" then
CateID=0
CateName="全部产品"
else
CateID=request("CateID")
end if
Key=request("Key")
%>

<%'----------------------------
PERPAGE =9
set rs=server.CreateObject("adodb.recordset")
if Key<>"" and CateID<>"" then '如果关键和产品类别都有的同时,筛选产品集
sql="select * from tProduct where StateFlag=0 and (CateID="&CateID&" or Title like '%"&Key&"%' or Content like '"&Cont

一次发不了那么多接上<tr align="left">
<td width="22%" colspan="3"><div align="center"><a href="javascript:newWindow('/cdweb/Product/ShowProduct.asp?ID=<%=rs("ID")%>','culture','713','583','')"><img width="120" height="120" border="0" <%if trim(rs("ProductPic"))="" or isnull(rs("ProductPic")) then response.write "src=/UploadFile/default.gif" else response.write "src=/UploadFile/ProductFile/"&rs("ProductPic")&" width='100'"%>></a></div></td>
</tr>
<tr align="left">
<td height="20" colspan="3"><div align="center"><font color=&quo