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.
如果您实际上是在主页中导航,我想删除我的页面徽标和名为“主页”的菜单项中的主页链接,也就是说,如果您在主页中,则菜单中的徽标和主页链接不应该是链接主页,在任何其他页面中,它们应该再次成为链接。
关于如何实现这一目标的任何想法?
非常感谢
检查使用:PageReference.StartPage.ID == Container.CurrentPage.PageLink.ID
您可以将其用作 A 标记周围占位符的可见条件...而不是自动链接名称的属性控件,只需使用:<%# HttpUtility.HtmlEncode(Container.CurrentPage.PageName)% >