Friday, July 5, 2013

Sorting DotNetNuke List Using Linq

The code below will return a list of ListEntryInfo objects sorted by value in ascending order. :)

Dim lc As New DotNetNuke.Common.Lists.ListController()
Dim entries = From e In lc.GetListEntryInfoItems("ListName") Order By e.Value Ascending Select e

No comments:

Post a Comment