Hello,
I have a NavBarItem containing an ASP.NET 2.0 Treeview child. The ASP:Treeview control has an event called TreeNodePopulate which will populate a node on demand. You can access the event like this:
---
Protected Sub tvTreeView_TreeNodePopulate(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.TreeNodeEventArgs) Handles tvTreeView.TreeNodePopulate
'Place code here
End Sub
---
My question is this: If my ASP:Treeview is a ServerTemplate living in my NavBar, how can I access the TreeNodePopulate event to load the Treeview? Below is how I am accessing the Treeview:
---
Dim tvStructure as new TreeView
'Get the ASP:Treeview control from the NavBar
tvStructure = me.navBar.Items(0).Items(0).FindControl("tvStucture")
---
I hope this makes sense and thank you in advanced! Rachel