Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > .NET 2.0 and Visual Studio. 2005 > Visual Studio 2005
|
Visual Studio 2005 For discussing Visual Studio 2005. Please post code questions about a specific language (C#, VB, ASP.NET, etc) in the correct language forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual Studio 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 28th, 2007, 12:14 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default TreeView in MasterPage - ExpandDepth problem

I have a project where my main navigation is a TreeView control on a Master Page. No matter how I set the ExpandDepth property, the TreeView will always revert to the level set in the ExpandDepth property - regardless of where the user has navigated to.

How can I get this control to start with the default depth on the home page and then expand with the user's navigation?

Thanks in advance for your comments.
 
Old December 28th, 2007, 12:45 PM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 218
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here is the declaration code:

<asp:TreeView ID="TreeView2" runat="server" DataSourceID="SiteMapDataSource1" ImageSet="Simple"
                        NodeIndent="12" NodeWrap="True" Width="200px">
                        <ParentNodeStyle Font-Bold="True" />
                        <HoverNodeStyle BackColor="#EEEEEE" Font-Underline="True" ForeColor="#5555DD" />
                        <SelectedNodeStyle BackColor="#E0E0E0" Font-Underline="True" ForeColor="#5555DD"
                            HorizontalPadding="0px" VerticalPadding="0px" />
                        <NodeStyle Font-Names="Verdana" Font-Size="8pt" ForeColor="Black" HorizontalPadding="0px"
                            NodeSpacing="0px" VerticalPadding="0px" />
                    </asp:TreeView>





Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with Images in the MasterPage when .... kalchev ASP.NET 2.0 Basics 20 August 1st, 2007 03:58 PM
Problem with Javascript on MasterPage rajeshmoorthy ASP.NET 2.0 Basics 0 May 17th, 2007 04:38 AM
Problem in Javascript -Masterpage ratheesh_param ASP.NET 2.0 Professional 0 December 4th, 2006 06:51 AM
Problem with Treeview amor1980 ADO.NET 1 May 17th, 2006 06:26 AM
TreeView Problem Medes C# 2005 0 April 23rd, 2006 07:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.