website

Discussion in 'ASP General' started by andrewm659@gmail.com, Sep 8, 2006.

  1. Guest

    I am trying to put asp page on our website that pulls information from
    out Active Directory database. When someone goes to a certain page and
    puts in a name, I want it to come up with all their info from ADS.
    Plus we want it to have a picture displayed. Here is what have so far:


    <%
    strDomainDN = "dc=precisionpractice, dc=com"

    Set objCon = CreateObject("ADODB.Connection")
    objCon.Provider = "ADsDSOObject;"
    objCon.Open "Active Directory Provider"
    Set objRS = objCon.Execute("<LDAP://" & strDomainDN & ">;" & _
    "(&(objectCategory=Person)(objectClass=user)(mail=*));" & _
    "givenname,sn,SamAccountName;subtree" )
    objRS.MoveFirst
    Response.write "<td><B>" & objRS.Fields(1).Name & "</B></td>"
    response.write "<td><B>" & objRS.Fields(2).Name & "</B></td></tr>"
    While Not objRS.EOF
    response.write "<tr><td>" & objRS.Fields(0).Value & "</td>"
    response.write "<td>" & objRS.Fields(1).Value & "</td>"
    response.write "<td>" & objRS.Fields(2).Value & "</td>"
    'response.write "<td><A HREF=""mailto:" & objRS.Fields(2).Value &
    """>"
    'response.write objRS.Fields(2).Value & "</A></td></tr>"
    objRS.MoveNext
    Wend
    Set objRS = Nothing
    Set objCon = Nothing
    %>


    But I am not sure how to tie this to a search field in ASP. I am new
    to ASP, so any help would greatly appreciated.
     
    , Sep 8, 2006
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Flip
    Replies:
    1
    Views:
    440
    Karl Seguin
    Nov 22, 2005
  2. Shawn

    Website on a website.

    Shawn, Jan 15, 2006, in forum: ASP .Net
    Replies:
    3
    Views:
    490
    Shawn
    Jan 15, 2006
  3. sck10
    Replies:
    1
    Views:
    423
    Michael Kolias
    Apr 13, 2006
  4. Adrian Wood

    Update website via website?

    Adrian Wood, Feb 22, 2004, in forum: HTML
    Replies:
    13
    Views:
    706
    Adrian Wood
    Feb 25, 2004
  5. A Leon
    Replies:
    4
    Views:
    492
    A Leon
    Mar 4, 2004
Loading...

Share This Page