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

Advertisements
 
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 Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: