Setting a tree view menu to a specific level

J

John

Hi there,

I have a site that uses a Tree View navigation control, based on a
web.sitemap file (via a SiteMapDataDource), which all works fine.

My question is how do I set the top node to be the current section rather
than the home page. The basic structure is the home page at the root
followed by a folder for each section (ie Products, Services etc.) with the
respective content pages in the folders. Each content page is based on a
master that sits at the root as well.

So can I set the top node programatically or is there an attribute I can set
instead?

Thanks in advance.

Best regards

John
 
W

Walter Wang [MSFT]

Hi John,

Not sure if my understanding of your requirement is correct or not, please
try following properties on the SiteMapDataSource control and let me know
if it answers your question:

<asp:SiteMapDataSource StartingNodeOffset="-1" StartFromCurrentNode="true"


Regards,
Walter Wang ([email protected], remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,065
Latest member
OrderGreenAcreCBD

Latest Threads

Top