Welcome to WebmasterWorld Guest from

Forum Moderators: ocean10000

Message Too Old, No Replies

Can you hide a link in a SiteMap, yet still show the breadcrumb on the SiteMapPath



3:31 pm on Oct 1, 2010 (gmt 0)

5+ Year Member

We have a dynamic sitemap and all nodes in the sitemap display a breadcrumb.

Is it possible to have the breadcrumb still showing, but make the link in the sitemap invisible or non-clickable?

Reason for this is that...
we dont want users to select some pages from the sitemap (becasue they need to conduct a search first to populate a datagrid) and clicking on the link will only take them to an empty page.

I tried just removing the url, or having a blank title, but that didn't work.

perhaps a stylesheet and set display=none or something..?

< siteMapNode title="my title"
description="my description"
url="~/folder/mypage.aspx" >
< / siteMapNode >


8:27 am on Oct 3, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member

HI sypa, welcome to WebmasterWorld!

The asp:Menu control has an onMenuItemDataBound event where you can intercept the MenuItems as they are being added.

Here is a simple example of how to remove a specific MenuItem based on its Text value:

protected void Menu1_MenuItemDataBound(object sender, MenuEventArgs e)
// Check the MenuItem Title
if (e.Item.Text == "my title")
// Needs to be removed, check if it is a SubItem
if (e.Item.Parent != null)
// Remove from ParentNode
// Remove from the Root of the Menu

Featured Threads

Hot Threads This Week

Hot Threads This Month