Archive for May 8th, 2008

Breadcrumbs - Rendering the current link

So one of yesterdays posts brought up a question about rendering the link to the current site. This sort of set me investigating.

There are a number of settings you can use with the ASP:SiteMapPath control. One is the RenderCurrentLink option. This defines whether the current location indicator in the breadcrumb should be shown as a link.

Examples of various breadcrumb settings and different SiteMapProvider\'s output

(Yes, this screenshot shows other settings - I’ll discuss them in other posts)

Looking at the top 4 rows you can see the effect of the the RenderCurrentLink option - it determines whether the last item is displayed as a link or not.