日期:2014-05-19  浏览次数:20424 次

请教如何一行三个三个的显示数据?

物品A     物品B   物品C
物品C     物品D   物品E
物品F     物品G   物品H
....
用Repeater可以实现吗?


------解决方案--------------------
<table width= "100% " cellpadding= "0 " cellspacing= "0 " border= "0 " align= "center ">
<tr height= "20px ">
<asp:Repeater ID= "repServer " runat= "server ">
<ItemTemplate>
<td align= "left> <%#DataBinder.Eval(Container.DataItem, "字段 ") %> </td>
<asp:Literal runat= "server " ID= "Literal1 " Text= " </tr> <tr height=20px> " Visible= ' <%#(bool)((Container.ItemIndex+1)%1==0)%> '> </asp:Literal>
</ItemTemplate>
</asp:Repeater>
</tr>
</table>