I´m trying to sort a Contact list by a given Property called "LastName". The .ascx code looks like this.
" PageLinkProperty="ListingContainerContact" runat="server" MaxCount='<%#getcount()%>'>
But i get this error message that says:
CS0117: 'System.Web.UI.Control' does not contain a definition for 'CurrentPage'
Any1 that got any ideas or Perhaps code examples for solving this matter
Tnx in advice%#getcount()%>
I think you just need to specify the name of the property rather than attempt to obtain it's value, ie
episerver:newslist id="NewsListControl" SortBy="LastName" PageLinkProperty="ListingContainerContact" runat="server" MaxCount='<%#GetCount()%>'>