How to know the ordinal position of an ItemTemplate
- by Gaizka
Need to add styles (class="bBot") to the first ItemTemplate item, how do I know it's the first?
<asp:Repeater id="ArticlesRepeater" runat="server">
<HeaderTemplate>
<div class="FR boxW380">
<div class="cnt mag">
<div class="FR">
<a href="#">Subscribe</a>
   
<a href="#">Archive</a>
</div>
<h1>Magazine</h1>
</HeaderTemplate>
<ItemTemplate>
<div>
<a href="#">
<img class="visu" alt=""
src="<%# DataBinder.Eval(Container.DataItem, "image") %> " />
<span class="title">
<%# DataBinder.Eval(Container.DataItem, "title") %>
</span>
<span class="content">
<%# DataBinder.Eval(Container.DataItem, "shortintroduction")%>
</span>
</a>
<div class="CB"></div>
</div>
</ItemTemplate>
<FooterTemplate>
</div>
</div>
</FooterTemplate>
</asp:Repeater>