SiteMapPath:更改链中最后一个链接的标题和链接
你好 你能建议任何解决方案吗? 我有一个 SiteMapPath 控件,而不是像
Home > Accounts > User Account
“用户帐户”指的是 ~/UserAccount.aspx
这样的默认功能,我想覆盖最后一个节点以显示有关当前用户的信息,即:
Home > Accounts > John White
“John White”指的是 ~/ UserAccount.aspx?id=111 ?
Hi
Can you advise please any solution?
I have a SiteMapPath control and instead of default functionality like
Home > Accounts > User Account
where "User Account" refers to ~/UserAccount.aspx
I would like to overwrite the last node to show info about a current user, i.e.:
Home > Accounts > John White
and "John White" refers to ~/UserAccount.aspx?id=111 ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您必须继承
XmlSiteMapProvider
并重写其BuildSiteMap
方法。在这里,您可以在运行时操作您想要的任何节点,这些节点随后将显示在您的SiteMapPath
控件中。Yeah, you have to inherit from the
XmlSiteMapProvider
and override itsBuildSiteMap
method. In here you can manipulate any nodes you want at runtime, which will then show up in yourSiteMapPath
control.