<asp:Repeater ID="Repeater1" runat="server">
<HeaderTemplate>
<table id="table" cellspacing="0" cellpadding="0">
<tr>
<th>
Name</th>
<th>
Description</th>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr>
<td bgcolor="#CCFFCC">
<asp:Label runat="server" ID="Label1" Text='<%# Eval("TT") %>' />
</td>
<td bgcolor="#CCFFCC">
<asp:Label runat="server" ID="Label2" Text='<%# Eval("TT") %>' />
</td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr>
<td>
<asp:Label runat="server" ID="Label3" Text='<%# Eval("TT") %>' />
</td>
<td>
<asp:Label runat="server" ID="Label4" Text='<%# Eval("TT") %>' />
</td>
</tr>
</AlternatingItemTemplate>
<FooterTemplate>
</table>
</FooterTemplate>
</asp:Repeater>
其实用DataList实现这种效果更方便,设置它的RepeatColumns="2" RepeatDirection="Horizontal"即可