Click here to Skip to main content
15,890,512 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
I'm in new in asp.net, I having one textbox and a button in this texbox user can enter login Id of any user already added in this ADgroup(Active Derectory) then click on button i need to fill all labels like first name,last name and Email address that's it my requirement any one knows in this scenario pls let me know with code..


Advance Wishes!!
Ramesh
Posted

1 solution

I suggest you start by reading about System.DirectoryServices[^] namespace first. This namespace contains the DirectoryEntry[^] class that you will be using in accessing the properties of the user objects of your Active Directory. The following are articles that you can use to start coding using the above-mentioned class. They have code samples too.
Querying Active Directory using .NET classes and LDAP queries[^]
Enumerating Active Directory Objects using C#[^]

Once you get familiar with it, you may also want to read Syed's article[^] about a wrapper API for AD services. It's just another way(probably easier) of doing things. Good luck. :)
 
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