System.Web.UI.WebControls Namespace SiteMapPath Class
.NET Framework version 2.0
Sets or retireves a value indicating whether a SiteMapPath navigation node that represents the currently displayed page is rendered as a hyperlink.
Inline |
<asp:sitemappath rendercurrentnodeaslink = true | false ... > |
Script |
SiteMapPath.RenderCurrentNodeAsLink [ = true | false ] |
This property accepts or returns only a boolean value: true if the node that represents the current page is rendered as a hyperlink; otherwise, false. Default value is false.
Use the RenderCurrentNodeAsLink property to specify whether the node that represents the current page in a SiteMapPath control is rendered as a hyperlink.
The node that represents the currently displayed page is the SiteMap.CurrentNode. By default, no hyperlink is rendered for the current page to prevent needless form posts.
If for whatever reason you need to set the RenderCurrentNodeAsLink property to true, the Url property of the current page in the site map is used to create a hyperlink.
SiteMapPath Members