System.Web.UI.WebControls.SiteMapPath.PathSeparatorTemplate Property

Gets or sets a control template to use for the path delimiter of a site navigation path.

Syntax

[System.ComponentModel.Browsable(false)]
[System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.Web.UI.TemplateContainer(typeof(System.Web.UI.WebControls.SiteMapNodeItem), System.ComponentModel.BindingDirection.OneWay)]
[System.ComponentModel.DefaultValue(null)]
public virtual System.Web.UI.ITemplate PathSeparatorTemplate { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Set the SiteMapPath.PathSeparatorTemplate to an System.Web.UI.ITemplate object to use an System.Web.UI.WebControls.Image or some other control, such as a System.Web.UI.WebControls.Label, as the path delimiter between navigation nodes instead of the SiteMapPath.PathSeparator string.

If the SiteMapPath.PathSeparatorTemplate property is set, the template overrides both the SiteMapPath.PathSeparator text displayed and any SiteMapPath.PathSeparatorStyle applied to it.

You can declaratively set the SiteMapPath.PathSeparatorTemplate property to any Web server control, and the ASP.NET infrastructure performs the necessary steps to wrap the Web server control as an System.Web.UI.ITemplate. However, Web server controls do not implement the System.Web.UI.ITemplate interface; therefore, when you work with the System.Web.UI.ITemplate properties programmatically, you must write an System.Web.UI.ITemplate wrapper for any template code. Then, the SiteMapPath.PathSeparatorTemplate property is set to an instance of the System.Web.UI.ITemplate wrapper.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0