怎么能让asp实现一行输出两列啊?

来源:百度知道 编辑:UC知道 时间:2024/06/05 09:07:17
下面的一段代码只能是这样显示 ,(这个ASP是生成html文件用的)
1
2
3
4
5
我想让它变成两列的
如1 2
3 4
5
求高手们帮帮忙了,先谢谢了 希望最好不要让我添<table>表格代码,因为整个源码也没表格代码!
set rs1 = Server.CreateObject("ADODB.Recordset")
sql1="select * FROM Flash_class where parent="&parent
rs1.open sql1,conn,1,1
if rs1.eof and rs1.bof then
class_ = "暂无分类"
else
do while not rs1.eof
class_str = replace(class_mb,"{class}",""&rs1("class")&"")
class_str = replace(class_str,"{classid}",""&rs1("classid")&"")
class_=class_&class_str
rs1.movenext
loop
rs1.close
set rs1=nothing
end if
偶可是个ASP大菜鸟,高手们最好把源码写出来啊,实用在加分也可以啊
是不错啊,可是为什么不行呢,能不能告诉我模板里怎么设置啊,怎么就是不行呢?

set rs1 = Server.CreateObject("ADODB.Recordset")
sql1="select * FROM Flash_class where parent="&parent
rs1.open sql1,conn,1,1
if rs1.eof and rs1.bof then
class_ = "暂无分类"
else
dim i
i=1
do while not rs1.eof
class_str = replace(class_mb,"{class}",""&rs1("class")&"")
class_str = replace(class_str,"{classid}",""&rs1("classid")&"")
class_=class_&class_str
if i mod 2=0 then
response.write "</br>"
i=0
end if
rs1.movenext
i=i+1
loop
rs1.close
set rs1=nothing
end if

hehe
不错```