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

How to disable the links in sitemappath?

Hello all,
can you please tell me how to disable links in SiteMapPath? I need it to show a path only without any links. RenderCurrentNodeAsLink = False is not enough.
May 3 '07 #1
1 4114
One option is to handle the ItemDataBound event of the SiteMapPath:

if (e.Item.ItemType == SiteMapNodeItemType.Parent || e.Item.ItemType ==
SiteMapNodeItemType.Root)
{
((HyperLink)e.Item.Controls[0]).NavigateUrl = "";
}

Note that the above code assumes you have set RenderCurrentNodeAsLink to
false and the index value (zero above) may change if you have nested controls
in your node template.

"Swati Jain" wrote:
Hello all,
can you please tell me how to disable links in SiteMapPath? I need it to show a path only without any links. RenderCurrentNodeAsLink = False is not enough.
May 3 '07 #2

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

Similar topics

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: 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"...
1
by: sean.marchetti | last post by:
Hello, I am having a little difficulty coming up with a solution for the following requirement and I was hoping somebody might be able to offer some help. I need to create a SiteMapPath for a...
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: =?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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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?
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...

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.