首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

请问怎么一行三个三个的显示数据

2012-01-11 
请教如何一行三个三个的显示数据? 物品A物品B物品C物品C物品D物品E物品F物品G物品H....用Repeater可以实现

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

物品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>

热点排行