BreadcrumbsFor(HtmlHelper,CmsPage,Object) Method

Example 

The page to create the menu for.
Additional Html attributes to apply to the menu. Use itemClass to apply a class to items in list and linkClass to apply a class to links in list.
Creates a breadcrumbs menu in the form of an unordered Html list applying additional Html attributes.

Syntax

'Declaration
 
<ExtensionAttribute()>
Public Overloads Shared Function BreadcrumbsFor( _
   ByVal helper As HtmlHelper, _
   ByVal page As CmsPage, _
   ByVal htmlAttributes As Object _
) As IHtmlString
[Extension()]
public static IHtmlString BreadcrumbsFor( 
   HtmlHelper helper,
   CmsPage page,
   object htmlAttributes
)

Parameters

helper
page
The page to create the menu for.
htmlAttributes
Additional Html attributes to apply to the menu. Use itemClass to apply a class to items in list and linkClass to apply a class to links in list.

Return Value

Unordered Html list.

Example

@Html.BreadcrumbsFor(Model.CurrentPage, new { @class = "breadcrumb" })

Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

This documentation was created using Document! X from Innovasys