if i mod 2=0 then 如何完整地安放
下面的一段代码只能是这样显示1
2
3
4
5
6
我想让它变成两列的
如1 2
3 4
5 6求高手们帮帮忙了,先谢谢了 !
if request("cpid")<>"" then
sql1="select * from ................................."
else
sql1="select * from ................................."
end if
rs1.open sql1,conn,1,1
if not rs1.eof then
'分页的实现
listnum=3
Rs1.pagesize=listnum
page=Request("page")
if (page-Rs1.pagecount) > 0 then
page=Rs1.pagecount
elseif page = "" or page < 1 then
page = 1
end if
Rs1.absolutepage=page
'编号的实现
j=rs1.recordcount
j=j-(page-1)*listnum
i=0
do while not rs1.eof and i<listnum
cocp=cocp&"<table width=100% border=0 cellspacing=0 cellpadding=5><tr><td width=80 height=90 align=center>"
cocp=cocp&"<a href=.............................></a><br>"
cocp=cocp&"</td><td>"
cocp=cocp&"<p style='line-height:110%'><a href=......................................"
cocp=cocp&"</td></tr></table>"
rs1.movenext
i=i+1
j=j-1
loop
filename="bgzm.asp?id="&request("id")&"&cpid="&request("cpid")&""
if page=1 then
else
upfy11="...........................................................</a>"
end if
if Rs1.pagecount=1 then
else
upfy22="["&page&"]"
end if
if Rs1.pagecount-page <> 0 then
upfy33=".......................................................... </a>"
end if
cocp=cocp&"<table width=100% border=0 cellspacing=0 cellpadding=5><tr><td align=right height=50>"
cocp=cocp&"<strong>"&page&"/"&Rs1.pagecount&"</strong> 页 "&upfy11&" "&upfy22&" "&upfy33&""
cocp=cocp&" </td></tr></table>"
end if
rs1.close
疑问?
if i mod 2=0 then
如何完整地安放在(具体的位置)以上的代码之中 --------------------编程问答-------------------- LZ帖子应该在ASP版块问问 --------------------编程问答-------------------- 如果是asp.net,用datalist就可以. --------------------编程问答-------------------- 晕倒 --------------------编程问答-------------------- n年不写asp,看不懂了,汗~ --------------------编程问答-------------------- 为什么要用if i mod 2=0 then ?
直接每行输出两格不可以吗? --------------------编程问答-------------------- n年不写asp
只能把它当vb看了...
补充:.NET技术 , ASP.NET