How i can determine the amount of rows which display in this repeater at once?
<asp:Repeater ID="Repeater1" runat="server" DataSourceID="News" EnableViewState="true">
<ItemTemplate>
<hr />
<div style="color:#036e90; font-weight: bold; font-family:Tahoma; text-align:center ; padding-left:10px"><a href="DisplayNews.aspx"><%#DataBinder.Eval(Container.DataItem, "News_Name")%></a></div>
<div style=" FONT-SIZE: 10pt; FONT-FAMILY: Tahoma ; text-align:center;padding-left:10px"><%#DataBinder.Eval(Container.DataItem, "News_Description")%></div>
<br />
<hr />
</ItemTemplate>
</asp:Repeater>
This should work too:
((Container.Parent as Repeater).DataSource as IList).Count
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With