Last post Jul 24, 2012 07:21 PM by gww
Jul 24, 2012 04:32 AM|parthiv.kubavat|LINK
I have to crete web page which allows user to insert AD object like user,computer ,group....into the folder usen by the use at run time...
for that i have decide to list all the child of the domain in drop downlist ...but i found it defficult to treak the path of the selected ittem or folder ....for the insertion operation...
i can insert user compute by hard coding the path in to my c# code...but how to do this at run time ?
Jul 24, 2012 05:19 AM|Mudasir.Khan|LINK
instead of dropdown displaying complete list of child domain have a link and click of that open a popup and let the user select the domain because get all the child domains for all the users would take very long time
Jul 24, 2012 07:21 PM|gww|LINK
At run time when you populate your list. I assume you are populating the names of OUs. As you loop through the LDAP and grab the name of each OU to display in the list also grab the path of each OU and add that as the value of the dropdownlist. You will
use this path when you call your DirectoryEntry(ddl.value) then add the child DirectoryEntry.Children.Add.