473,386 Members | 1,812 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,386 software developers and data experts.

SiteMapPath not working for pages with anchors on - WHY???

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 page has the url
with an anchor - for example:

<siteMapNode title="call back" description="Call back solutions."
url="Pages/os_callback.aspx#top" >

The code for the control is:
<asp:SiteMapPath ID="SiteMapPath1" runat="server" ParentLevelsDisplayed="-1"
CurrentNodeStyle-ForeColor="#F80E0D" NodeStyle-ForeColor="#777777"
BackColor="#F5F5F5" BorderWidth="1px" BorderColor="#F80E0D" ></asp:
SiteMapPath>

HELP?????? Thanks in advance.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200605/1
May 4 '06 #1
5 3201
...

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200605/1
May 4 '06 #2
...

--
Message posted via http://www.dotnetmonster.com
May 4 '06 #3
...

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200605/1
May 4 '06 #4
...

--
Message posted via http://www.dotnetmonster.com
May 4 '06 #5
try replacing the # with
# (including the ;)
in the sitemap .

HTH

--
Swanand Mokashi
Microsoft Certified Solution Developer (.NET) - Early Achiever
Microsoft Certified Application Developer (.NET)

http://www.dotnetgenerics.com/
DotNetGenerics.com -- anything and everything about Microsoft .NET
technology ...

http://www.swanandmokashi.com/
http://www.swanandmokashi.com/HomePage/WebServices/
Home of the Stock Quotes, Quote of the day and Horoscope web services
"Jon via DotNetMonster.com" <u2272@uwe> wrote in message
news:5fbf5bb3a6a33@uwe...
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 page has the url
with an anchor - for example:

<siteMapNode title="call back" description="Call back solutions."
url="Pages/os_callback.aspx#top" >

The code for the control is:
<asp:SiteMapPath ID="SiteMapPath1" runat="server"
ParentLevelsDisplayed="-1"
CurrentNodeStyle-ForeColor="#F80E0D" NodeStyle-ForeColor="#777777"
BackColor="#F5F5F5" BorderWidth="1px" BorderColor="#F80E0D" ></asp:
SiteMapPath>

HELP?????? Thanks in advance.

--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...p-net/200605/1

May 4 '06 #6

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

Similar topics

0
by: Not Me | last post by:
Hi all, 2 questions :) I would like to access user.identity.name through a master page.. this doesn't seem to be possible, any ideas on getting around this? Also, when using a sitemappath,...
1
by: needin4mation | last post by:
I want to use the Menu and SiteMapPath. But it looks like I have the create the xml file that stores the data by hand. What if I had a site with 500 pages? That seems to be to cumbersome. Is...
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...
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...
1
by: Alec MacLean | last post by:
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...
0
by: Uriah Piddle | last post by:
Hi Gang, In my ASP.NET 2.0 project, I have several pages that require a query string and I have code that redirects if it is not both found and valid. This has caused problems with the...
2
by: Uriah Piddle | last post by:
Hi, What is the best way to store/retrieve query strings for pages when the user is navigating backwards using the SiteMapPath control? Thanks. Steve
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 ...
3
by: oaksong | last post by:
I've got siteMapPath on my pages. This seems to work pretty well except for a page that does a redirect. I was using system.transfer initially and read that it swapped the called page for the...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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,...

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.