473,545 Members | 1,471 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

SiteMapPath control doesn't like named anchors in sitemap

Hi.

I'm using VS2005 Pro to work on a website project for my company.

The site has several navigation elements, all based on the standard VS2005
navigation components.

I have high-level section navigation provided via a horizontal menu, a
SiteMapPath to provide a breadcrumb and a vertical menu component on the
left edge.

The SiteMapPath uses a sitemap that covers the full site. The top menu uses
a smaller sitemap file to specify section headings. The side menus are
changeable via the use of a set of separate sitemap files, as our website is
broken up into sub-project folders using the WAP add-in and nested master
pages. Each section gets its own sub-sitemap.

The combination allows for the side (sub) menu to change depending on where
in the site the visitor is in the site. This system works great - until I
was asked to provide a menu that displays several links that target the same
page.

As you'll know if you'e used sitemap files, they do not allow two entries
that point to the same address. My solution to this has been to add named
anchor tags to the target pages and then add the "#anchornam e" combination
to the url in the sitemap file.

This then correctly parses and allows for the menu to work as desired by my
project stakeholder, but it has the negative impact of not being interpreted
by the SiteMapPath (breadcrumb) control, which behaves as if the node was
not entered at all and blanks the control completely.

It also prevents the Selected page style of the side menu operating, so
other than the actual page content, I lose any navigational indicator to
present the current location to the user.

Has anyone come across this problem and found, or know of, a solution?

Thanks.

Al
Oct 18 '06 #1
1 2461
Just as a follow-up, I have a work around that at least gets the SiteMapPath
working, though it can't be sued on the sub-menu.

Because the page the named anchors target is the same, I am able to cut the
node entries down in the full sitemap to just the page without the #name
suffix (again, no duplicates). This permits the breadcrumb to correctly
interpret where it is in relation to the sitemap and the page being viewed.

I guess I can live without the side menu selected page being highlighted,
given the breadcrumb now operates.

Would still appreciate any responses on how the use of named anchors might
be made to be recognised though!

Al

"Alec MacLean" <al**********@N O-SPAM-copeohs.comwrot e in message
news:eq******** ******@TK2MSFTN GP05.phx.gbl...
Hi.

I'm using VS2005 Pro to work on a website project for my company.

The site has several navigation elements, all based on the standard VS2005
navigation components.

I have high-level section navigation provided via a horizontal menu, a
SiteMapPath to provide a breadcrumb and a vertical menu component on the
left edge.

The SiteMapPath uses a sitemap that covers the full site. The top menu
uses a smaller sitemap file to specify section headings. The side menus
are changeable via the use of a set of separate sitemap files, as our
website is broken up into sub-project folders using the WAP add-in and
nested master pages. Each section gets its own sub-sitemap.

The combination allows for the side (sub) menu to change depending on
where in the site the visitor is in the site. This system works great -
until I was asked to provide a menu that displays several links that
target the same page.

As you'll know if you'e used sitemap files, they do not allow two entries
that point to the same address. My solution to this has been to add named
anchor tags to the target pages and then add the "#anchornam e" combination
to the url in the sitemap file.

This then correctly parses and allows for the menu to work as desired by
my project stakeholder, but it has the negative impact of not being
interpreted by the SiteMapPath (breadcrumb) control, which behaves as if
the node was not entered at all and blanks the control completely.

It also prevents the Selected page style of the side menu operating, so
other than the actual page content, I lose any navigational indicator to
present the current location to the user.

Has anyone come across this problem and found, or know of, a solution?

Thanks.

Al

Oct 18 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5195
by: Mark | last post by:
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? ...
4
2588
by: Robert Camsky | last post by:
Hi, I've got web.sitemap file with few nodes and subnodes and SiteMapPath control. It works fine. But imagine, I'm worrking on an calender implemented this way: calendar.aspx -> showing upcomming events calendar.apsx?year=2005 showing calendar for year 2005 calendar.apsx?year=2005&month=1 showing january in 2005...
1
3083
by: Danial | last post by:
Hi, How can I bind sitemappath (breadcrumb control of asp.net) to a custom ..sitemap file? By defualt its looking for web.sitemap file and giving me not found exception. Thanks Danial
1
4514
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 pages in the root of the Web project. VS2005 creates the folling aspx: <asp:SiteMapPath ID="SiteMapPath" runat="server"> <PathSeparatorTemplate>...
5
3208
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: <siteMapNode title="annual report" description="Annual report" url="Pages/ir_annuals.aspx" /> but the sitemappath control doesn't show the path if the...
0
1778
by: Mike | last post by:
I want to use a SiteMapPath control (storing the map in web.sitemap) and URL mapping in the web.config file to control navigation for my website. I also want to have in my querystring (no cookies allowed) a custom sessonID so that each pages URL would be http://www.website.com/PageName.aspx?MySessionID=9JHJY79. My question is: How can I...
3
4442
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 the user chooses in the Articles page. The way it is set up now, if the user selects a particular article in the 'Articles' page, the SiteMap looks...
2
4250
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 Each page receives a query string i.e. productGroup.aspx?id=9 The page then renders with the appropriate details which have been accessed
1
2370
by: =?Utf-8?B?bWljaGFlbHJp?= | last post by:
We are dynamically changing the title property of nodes in our sitemappath to reflect the names of products by handling the SiteMapResolve event. We have some unicode characters in our product names, stored in our db using escape characters like: "è" When we set the SiteMapNode.Title to that value it is escaped by the sitemappath to "è"...
0
7465
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7805
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
0
5969
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5325
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1013
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
701
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.