john.banning-springbox
-
10/9/2009 5:22:39 PM
tree.SelectNodes Orderby - return node by position in tree
All I would like to return document types in the order that they are listed in my tree view. I thought there would be an available field in the database that captured the position of the document in the tree, but I did not find anything.
Within a single folder called PressRelease I have a collection of "News" items. I only want to return the top 4 items as they appear in the tree regardless of the ID and Publish date. Is there someway I can write the code to handle this.
Current Code: _listResults = tree.SelectNodes("foo", "/PressRelease/%", null, true, "foo.News", null, "NewsID DESC", 1, true);
|