Archive

Posts Tagged ‘index’

Repeater control with multiple columns


VB.NET

<asp:Repeater ID=”rptimages” runat=”server”>
<HeaderTemplate>
<table border=”0″ cellpadding=”5″ cellspacing=”0″ width=”100%” style=”border-spacing: 0px;”>
<tr>
</HeaderTemplate>
<ItemTemplate>

<%#If((Container.ItemIndex <> 0 AndAlso Container.ItemIndex Mod 3 = 0), “</tr><tr>”, String.Empty)%>
<td align=”center”>
<asp:Image ID=”imghotel” class=”cellBorder” runat=”server” Style=”width: 100px; height: 90px;
margin: 0px; padding: 0px;” />
</td>
</ItemTemplate>
<FooterTemplate>
</tr> </table>
</FooterTemplate>
</asp:Repeater>