Repeater 列数
<ItemTemplate>
<table width="99%" height="18" border="0" align="center" cellpadding="0" cellspacing="0"
style="margin-top: 8px">
<tr>
<td align="center">
<table width="152" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="152" colspan="2" style="border: #CCCCCC 1px solid">
<img src="Admin/Shop/<%# Eval("ImageUrl") %>" width="150" height="191" /></td>
</tr>
<tr>
<td height="20" colspan="2" align="center">
<%# Eval("ProductName").ToString().Substring(0, 10)%></td>
</tr>
<tr>
<td height="19" colspan="2" align="center">
<span class="STYLE2">尺码:M L </span>
</td>
</tr>
<tr>
<td height="19" colspan="2" align="center">
市场价: ¥<%# string.Format("{0:f2}",Eval("CCPrice"))%></td>
</tr>
<tr>
<td height="19" colspan="2" align="center">
会员价: ¥<%# string.Format("{0:f2}",Eval("HYPrice"))%></td>
</tr>
<tr>
<td height="31" align="center">
<a href="gwc.aspx"><img src="images/w3.jpg" width="70" height="31" border="0" /></a></td>
<td>
<a href='scj.aspx?productName=<%# Eval("ProductName")%>&edit=1'><img height="31" src="images/w4.jpg" width="70" border="0" /></a></td>
</tr>
</table>
</td>
</tr>
</table>
</ItemTemplate>
原代码:
string sql = "select * from IShop_Product";
Repeater1.DataSource = sqlHelper.getMyDataSet(sql);
Repeater1.DataBind();
我要显示的格式是:
a b c d e
e f g h j
就是要显示5列?
要怎么设置列数?