Aug 18, 2008 02:57 PM|ssg31415926|LINK
From the TreeView's point of view, this is valid. The problem is that the standard way of describing LDAP objects is backwards compared to, say, a disk drive's folder structure. The 'top' of a disk is at the left of the path ("C:\Windows\system32") whereas
for a distinguishedName, it's at the right (CN=John Doe,OU=Users,DC=domain,DC=com).
If you just want to view the path, you could use the canonicalName format: Domain.Com/Users/John Doe
If you need to use it for navigation, you could save it as you go. TreeNodes (http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.treenode_members.aspx) have a Valueproperty which is a String which is not displayed. You could simply store
the full distinguishedName of the object, or you could store the relativeDistinguishedName (RDN) of that node - it has to be unique for it's parent node, I think.
Or you could write a method to parse the TreeView's version of the path into a distinguishedName.
Hope that helps.