Setting a tree view menu to a specific level

  • Thread starter Thread starter John
  • Start date Start date
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
 
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.
 
Back
Top