lokesh

lokesh

  • 1.6k
  • 89
  • 9.3k

Can we use Multiple Template Tags within repeater?

Apr 20 2019 6:39 AM
Can we use Multiple Template Tags within repeater?
 
<asp:Repeater id="Repeater" runat="server">
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "test1")%>
</ItemTemplate>
<AlternatingItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "test2")%>
</AlternatingItemTemplate>
<ItemTemplate>
<%#DataBinder.Eval(Container.DataItem, "test3")%>
</ItemTemplate>
</asp:Repeater>
 
If yes how to do? If not then how can i achieve like the above?

Answers (2)