hi, this is my first post as you will easily see i'm quite new to this and am struggling.
i have some working code that pulls user information from our active directory.
the only way i've seen so far to display these results is to place it in a "For Each" statement.
this can then be output to the page. however if there are lots of results this can take a while, so i was wondering if it was possible to be able to step through and handle the results by an index?
here is what i have done so far:
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
Dim Forename As String
Dim Surname As String
'to create the correct search criteria for the AD we need to add the wildcard to the end of the string
Forename = Session("appForename") & "*"
Surname = Session("appSurname") & "*"
'Tell the system which AD to connect to, this can also specify a location in AD
'We want to connect to the root so that it searches all sites
'We want to connect directly to the server that manages our replication services
Dim enTry As New DirectoryEntry("LDAP://servername")
'Create the object that will perform
View Complete Post