Posted on: 8/30/2012 8:31:11 AM | Views : 551

Hello
I want to set the alternate row color for my repeater control, following is my code

<asp:Repeater ID="rptrQuery" OnItemDataBound="rptrQuery_DataBound" OnItemCommand="rptrQuery_ItemCommand" runat="server" DataSourceID="SqlDataSource1"> <ItemTemplate> <table width="100%" border="0" cellpadding="0" cellspacing="0" style="font-family:'Tenor Sans', sans-serif; font-size:0.8em; font-weight:normal;"> <tr> <td style="width:45%;"> <asp:Label ID="lblFrom" Text='<%# Eval("ticketFrom") %>' runat="server"></asp:Label> - <asp:Label ID="lblTo" Text='<%# Eval("ticketTo") %>' runat="server"></asp:Label> </td> <td style="width:25%;"> <asp:Label ID="lblDate" runat="server" Text='<%# Eval("DealDate") %>'></asp:Label> </td> <td style="width:20%;"> <asp:Label ID="lblPrice" runat="server" Text='<%# Eval("mtcPrice") %>'>< ...

Go to the complete details ...