If you want an alternating background color on a row in a gridview it’s just to add the AternatingRowStyle-BackColor-attribute. It’s not the same thing with a repeater but this is how you do it.

If you want the repeater to have an alternating background color on the rows in a table it’s just to add an alternating template and add a css-class to the <tr> that’s in the alternating template.

<table id="tableListOfUsers" class="list-of-users">
<tr>
<th>Name</th>
</tr>
<asp:Repeater ID="RepeaterListOfUsers" runat="server">
<ItemTemplate>
<tr>
<td><%# Eval("Name") %></td>
</tr>
</ItemTemplate>
<AlternatingItemTemplate>
<tr class="alternating">
<td><%# Eval("Name") %></td>
</tr>
</AlternatingItemTemplate>
</asp:Repeater>
</table>

/Simon Kjellberg