Navigation

Search

Categories

On this page

CSS Adapter for the SiteMapPath control.

Archive

Blogroll

Disclaimer
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.

RSS 2.0 | Atom 1.0 | CDF

Send mail to the author(s) E-mail

Total Posts: 149
This Year: 2
This Month: 0
This Week: 0
Comments: 43

Sign In
Pick a theme:

# Sunday, December 03, 2006
Sunday, December 03, 2006 11:42:43 AM (GMT Standard Time, UTC+00:00) ( .Net Web )

Wrote a CSS Adapter for the SiteMapPath control. I wanted a breadcrumb trail with clean link tags only. Renders a clean set of link tags within a div tag (and optionally a span tag).

Usage:

Add the SiteMapPathAdapter.cs file to your web project. (rename the .txt file to .cs)

Add a .browser file to the web site. Add the following entry in the controlAdapters element.

 <adapter controlType ="System.Web.UI.WebControls.SiteMapPath"
               adapterType ="SiteMapPathAdapter" />

 

Drag and drop the control on to the web form

<asp:SiteMapPath ID="SiteMapPath1" runat="server" CssSelectorId="breadcrumbs" >
        </asp:SiteMapPath>

Use the CssSelectorId attribute to give the surrounding div an identifier.

More on CSS Adapters

CSS Control Adapter Toolkit for ASP.NET 2.0

Architectural Overview of Adaptive Control Behavior

Browser Definition file schema

Comments [1] | | #