WebForms TreeView

Status
Not open for further replies.

Akula

Well-known member
17,428
I have a treeview in ASP.NET 4 that is populated from Active Directory (same view as ADUC). For the TreeView's OnSelectedNodeChanged event, I have this:

Code:
    Protected Function LoadObject(ByVal sender As Object, ByVal e As EventArgs)

        Dim node As TreeNode = tvActiveDirectory.SelectedNode
If Not IsNothing(node) Then
        Response.Write(node.Value.ToString())
End If

When I click on the root node, the node value loads correctly. When I click on any other node (parent or child), I get nothing, and I'm assuming this is because of the PostBack caused by the Event. How can I get around this?
 
Status
Not open for further replies.