473,387 Members | 3,684 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

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

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
3 5183
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Eric | last post by:
I am looking for a breadcrumb class in PHP that does not rely on the directory structure to build the trail. I have been using Richard Baskettes - http://www.baskettcase.com/classes/breadcrumb/...
2
by: Chilá | last post by:
Hi there. I got the following doubt: I got page_1, page_2 and page_3 on the system. But, depending of the option selected, page_1 and page_2 can call page_3. The problem is, how to...
1
by: Jules | last post by:
In a ASP.NET 2.0 project I'd like to set an image as path separator in the SiteMapPath. When I edit the PathSepartor template (for this SiteMapPath) and drag an image on it, it works fine for all...
5
by: Jon via DotNetMonster.com | last post by:
Hi all, I'm using the ASP.NET sitemappath control and the ASP.NET menu control This sitemappath control works and shows the path when the page doesn't have an anchor - for example: ...
0
by: news.sbcglobal.net | last post by:
Hi. I was wondering if someone could tell me how to set SiteMapPath control styles in a .skin file. I've tried this (see below) but it doesn't work: <asp:SiteMapPath runat="server"...
3
by: DBdealer via DotNetMonster.com | last post by:
I'm trying to build a breadcrum navigation bar for my website....please can some one suggest me ways...It's a 100 page site and I need it for navigation with the site....Thank you -- Message...
3
by: Uriah Piddle | last post by:
Hi Gang, I have a SiteMapPath, bound to a Site Map, that traces a hierarchy down to an 'Article' leaf node. But the Article page shows one of many individual articles depending on which article...
2
by: =?Utf-8?B?SmFtZXMgUGFnZQ==?= | last post by:
I’m trying to create a dynamic asp.net 2.0 siteMapPath control (using VB.net). Using the xml sitemap I’ve got these three pages: productGroup.aspx productListing.aspx productDetail.aspx ...
0
by: =?Utf-8?B?TWFoZXNoIE5pbWJhbGthcg==?= | last post by:
Hi All, I am using WCSF in my application. I have Menu control and SiteMapPath, which are consuming SiteMapDataSource source provided by WCSF. Now I have Report Details page that is not...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.