Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have a sitemap node and the format is as follows:
<mvcSitemapenode title="A"/>
Is it possible to get the parent node using Mvcsitemap() in the cshtml file?
Mvcsitemap()
您应该能够像这样获得父节点:
@Html.MvcSiteMap().Provider.CurrentNode.ParentNode
提供者继承自抽象的SiteMapProvider类