472,780 Members | 4,850 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 "#anchorname" 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 2424
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**********@NO-SPAM-copeohs.comwrote in message
news:eq**************@TK2MSFTNGP05.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 "#anchorname" 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
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...
4
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...
1
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
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: 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...
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 ...
1
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...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

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.