lokesh

lokesh

  • 1.8k
  • 70
  • 1.6k

Regarding repeater item template and alternateitem template

Apr 20 2019 12:28 AM
Hi,
I have the page structure as below,
<asp:Repeater ID="repitem" runat="server">
<ItemTemplate>
<div>Item 1</div>
<div>Item 2</div>
</ItemTemplate>
<AlternatingItemTemplate>
<div>Item 3</div>
</AlternatingItemTemplate>
</asp:Repeater>
When i bind data to this repeater, in the place of item 1 and item 2 same data is showing. I want 3 different items should be shown in item1,2 and 3 places. How can i achieve this ?

Answers (1)