ASP.NET Treeview control navigation - Help!

Associate
Joined
12 Jun 2006
Posts
164
Guys, need some help from experienced ASP.NET developers. I've got a Treeview control for side menu navigation on a website. It has been set only to shows nodes at the top level and not to show the collapse/expand icons.

The problem I am having is getting one of these ParentNodes on the top level to load the correct link and expand to shows its ChildNodes when clicked.

At the moment, when I click on the ParentNode, I am taken to the correct page but it does not expand to show its ChildNodes. I am using C# as the programming language. I have the standard Treeview control code with the ExpandDepth="0" and it gets its node information from the 'sitemap' file.

<asp:TreeView ID="TreeView1" runat="server" DataSourceID="SiteMapDataSource1" ExpandDepth="0"BackColor="#007CC2" ImageSet="Arrows" >

</asp:TreeView>

Can anyone tell me how I can do this? Thx :)
 
Back
Top Bottom