For the latest news items i have the following code
<asp:EntityDataSource ID="entynews" runat="server"
ConnectionString="name=CommerceEntities"
DefaultContainerName="CommerceEntities" EnableFlattening="False"
EntitySetName="news">
</asp:EntityDataSource>
How do i limit the records to say five and also order it by a field called startdate to return the most recent news.
Regards
Thanks
David Buckley
Add the
OrderByproperty e.g.and the
Selectproperty e.g.to your
EntityDataSourcedeclaration.