By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,403 Members | 1,567 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,403 IT Pros & Developers. It's quick & easy.

ASP.NET 2.0, Breadcrumb (SiteMapPath) and TreeView on same page

P: n/a
I can envision a situation where I want part of our site to be navigated
using a TreeView, and ALL of our site to have a Breadcrumb (SiteMapPath
control). Is there a way to maintain a single SiteMaptDataSource
(Web.sitemap) for both, but only have 1/2 of the nodes visible in the
TreeControl, and have ALL the nodes visible in the Breadcrumb?

We could maintain two Web.sitemaps, but that sounds like a annoying
maintenance issue.

Thanks in advance.

Mark
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Mark:

You can take advantage of a SiteMapDataSource control. The TreeView
can bind to the data source control, and the data source control has
properties that allow you to filter and trim the nodes that will be
seen. The bread crumb, on the other hand, goes directly to the site
map provider for unfiltered information. Definitely no need to write
two sitemaps.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Mon, 3 Oct 2005 09:59:10 -0500, "Mark" <ma**@nojunkmail.com> wrote:
I can envision a situation where I want part of our site to be navigated
using a TreeView, and ALL of our site to have a Breadcrumb (SiteMapPath
control). Is there a way to maintain a single SiteMaptDataSource
(Web.sitemap) for both, but only have 1/2 of the nodes visible in the
TreeControl, and have ALL the nodes visible in the Breadcrumb?

We could maintain two Web.sitemaps, but that sounds like a annoying
maintenance issue.

Thanks in advance.

Mark


Nov 19 '05 #2

P: n/a
When you add the SiteMapPath to a page, a SiteMapDataSource control is added
to the page, as well. You can add as many of these as you need to filter
controls differently off a single web.sitemap.
--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Mark" wrote:
I can envision a situation where I want part of our site to be navigated
using a TreeView, and ALL of our site to have a Breadcrumb (SiteMapPath
control). Is there a way to maintain a single SiteMaptDataSource
(Web.sitemap) for both, but only have 1/2 of the nodes visible in the
TreeControl, and have ALL the nodes visible in the Breadcrumb?

We could maintain two Web.sitemaps, but that sounds like a annoying
maintenance issue.

Thanks in advance.

Mark

Nov 19 '05 #3

P: n/a
Some or all of the objective can be achieved using Roles without any coding
noting the Membership System must be implemented.

<%= Clinton Gallagher
METROmilwaukee (sm) "A Regional Information Service"
NET csgallagher AT metromilwaukee.com
URL http://metromilwaukee.com/
URL http://clintongallagher.metromilwaukee.com/
"Mark" <ma**@nojunkmail.com> wrote in message
news:%2*****************@TK2MSFTNGP10.phx.gbl...
I can envision a situation where I want part of our site to be navigated
using a TreeView, and ALL of our site to have a Breadcrumb (SiteMapPath
control). Is there a way to maintain a single SiteMaptDataSource
(Web.sitemap) for both, but only have 1/2 of the nodes visible in the
TreeControl, and have ALL the nodes visible in the Breadcrumb?

We could maintain two Web.sitemaps, but that sounds like a annoying
maintenance issue.

Thanks in advance.

Mark

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.