How to use DirectorySearcher's Sort ?
ASP.NET
1
Posts
1
Posters
0
Views
1
Watching
-
Hello, Has anyone successfully sorted their Directory results using DirectorySearcher's sort method? I've tried both: Method 1: searcher.Sort = new SortOption("xxx",SortDirection.Ascending); and Method 2: searcher.Sort.PropertyName = "xxx"; searcher.Sort.Direction = SortDirection.Ascending; Where "xxx" is one of the DirectoryEntry's children's property names. Both giving me the error: "The value for the property Sort could not be set." Could anyone help plzzz!? Thxs..