newbie question

A

Auddog

I'm wanting to write a help desk program for our company on our intranet.
I've done them before with php, but not asp.net. I was wondering if anyone
could tell me the best way for me to get a list of users from AD so that I
can place them in a drop down list. I've done some reading, but I'm getting
a little confused. Thanks for any help that you may provide.

A
 
R

Rimu Atkinson

Auddog said:
I'm wanting to write a help desk program for our company on our intranet.
I've done them before with php, but not asp.net. I was wondering if anyone
could tell me the best way for me to get a list of users from AD so that I
can place them in a drop down list. I've done some reading, but I'm getting
a little confused. Thanks for any help that you may provide.
retrieve your userlist into a dataview, or datatable. that's just standard
database access stuff, there is 100's of examples out there.

then, databind the dataview onto your drowdown

eg

'these who are the database columns to use
DropDown1.DataValueField = "user_id"
DropDown1.DataTextField = "user_name"

DropDown1.DataSource = MyDataView
DropDown1.DataBind()

for more info http://www.asp.net/Tutorials/quickstart.aspx
 
A

Auddog

I was thinking more along the lines of getting the information out of the
AD. Whether to use LPAD or ADO or will I just be able to bind via SQL?

Thanks

A
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,430
Messages
2,571,676
Members
48,796
Latest member
Greg L.

Latest Threads

Top