I have a lookup page that displays basic user data from AD in a grid control. I would like to create one of the grid columns as a hyperlink column and pass the username to a new page to display more user details from ad.
Any assistance to be able to get the parameter from the query string and call the data from AD would be much appreciated.
Here is the page I have been working on to populate the grid on page load based on the parameter query.
Partial Class test
Sub Page_Load(ByVal Source As Object, ByVal E As EventArgs)
Dim displayName As String
Dim samAccountName As String
Dim p_userGUID As String
Dim objDE As New DirectoryEntry()
objDE.Path = "LDAP://DC=tusd,DC=local/<sAMAccountName=" + p_userGUID + ">"
objDE.Username = "abrowning"
objDE.Password = "ab9156"
objDE.AuthenticationType = AuthenticationTypes.Secure
If objDE.Properties.Contains("sAMAccountName") Then
' make the People table and its columns
Dim tblPeople As New DataTable("People")
' Holds the columns and rows as they are being
Dim col As DataColumn
Dim row As DataRow
' Create LogonNam
View Complete Post