Click here to Skip to main content
15,918,330 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi Guru's

I find this code in Code project regarding AD info retrieve.

Am pretty much new to C# and am trying to understand the code but i have no idea how to execute the class file.


How to get User Data from the Active Directory[^]


Please enlighten me.

Thanks in Advance !
Posted
Updated 20-Feb-11 23:25pm
v2
Comments
nagendrathecoder 21-Feb-11 1:47am    
It would be better if you put a comment on that article regarding help for executing code, so the author can help you.
Sergey Alexandrovich Kryukov 21-Feb-11 2:49am    
Agree.
Sunasara Imdadhusen 21-Feb-11 2:06am    
What you want exactly from this code? Please clarify your requirement before post question!

The whole article is organised into a series of easy-to-follow steps:
Look where it says "Step 1", then do what it says underneath.
Follow this with "Step 2" and so forth until you reach "Step 8"

This code needs to be inserted where you want to actually examine the AD.
If yours is a console application, then insert it in your "Main" method.
If this is a WinForms application, then create a button handler and insert this code there.

To be brutally honest, if you can't work out what to do with this (rather simple) article, then I strongly suggest that you need to start at the beginning with "Hello World" and work your way up slowly. Get a book and read it though, doing the exercises. Or follow your course notes if you are formally learning.

By the look of it, you are trying to run before you can walk!
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 21-Feb-11 2:50am    
Good, especially about Hello Word, my 5.
--SA
see this link

it is best link that gives full idea of using AD

http://support.microsoft.com/kb/316748[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900