asp.net.ph

SiteMapPath.RenderCurrentNodeAsLink Property

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.

Syntax


Inline <asp:sitemappath rendercurrentnodeaslink = true | false ... >
Script SiteMapPath.RenderCurrentNodeAsLink [ = true | false ]

Property Value

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.

Remarks

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.

See Also

SiteMapPath Members Skip Navigation Links




Previous page Back to top Next page

Check out related books at Amazon

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note