I want to generate a named anchor on the last item in a uniview control. Within the item template, how can I get a count of the items in the control? It seems like it implements GetItemsCount via IEnumerable, but that's not accessible due to its protection level for some reason.
How can I get to it?
<cms:UniView runat="server" ID="listForums" EnableViewState="false">
<ItemTemplate>
<%# ((UniViewItem)Container).DisplayIndex == ((UniView)Container.Parent).GetItemsCount() ? "named anchor" : String.Empty %>
</ItemTemplate>
Thanks!
Joe Hoppe