RSS

Alternating row color on repeater control

29 Aug

<style type=”text/css”>
.normalRow
{
background-color: #FCFCFC;
}
.alternateRow
{
background-color: #ECECEC;
}

</style>

<ul>

<asp:Repeater ID=”rpsize” runat=”server”  >
<ItemTemplate>
<li class='<%# Container.ItemIndex % 2 == 0 ? “normalRow” : “alternateRow” %>’ >

<span><%# Eval(“vchSizeName”) %></span>
</li>
</ItemTemplate>
</asp:Repeater>

</ul>

rowcolor

 
1 Comment

Posted by on August 29, 2013 in ASP Dot Net C#

 

Tags: , ,

One response to “Alternating row color on repeater control

  1. Wendell

    September 23, 2013 at 9:20 am

    The Kettic Color Dialog WinForm Control is a light weight component and can build custom color from the web, system, and basic colors.

     

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.