How to use OL tag in Repeater control
<ol>
<asp:Repeater ID="repearter" runat="server">
<ItemTemplate>
<a href='/publish/<%#Eval("filename") %>'>
<li>
<span class="auto-style2" style="color:#333"><b> <%# DataBinder.Eval(Container.DataItem, "title")%> </b> </span> <br />
<asp:Label ID="lblTitle" runat="server" Text='<%# Eval("authorname") %>'></asp:Label>
</li>
</a>
<br />
<hr /><br />
</ItemTemplate>
</asp:Repeater>
</Ol>
<ol>
<asp:Repeater ID="repearter" runat="server">
<ItemTemplate>
<a href='/publish/<%#Eval("filename") %>'>
<li>
<span class="auto-style2" style="color:#333"><b> <%# DataBinder.Eval(Container.DataItem, "title")%> </b> </span> <br />
<asp:Label ID="lblTitle" runat="server" Text='<%# Eval("authorname") %>'></asp:Label>
</li>
</a>
<br />
<hr /><br />
</ItemTemplate>
</asp:Repeater>
</Ol>
No comments:
Post a Comment