ASP.net菜单只显示Web.sitemap中某些节点 [英] ASP.net menu only show certain nodes in Web.sitemap
问题描述
我有依靠查询字符串或会话变量的几个项目分开我Web.sitemap文件中。
我不希望这些项目出现在我的菜单。
I have a few items apart of my Web.sitemap file that rely on querystring or session variables. I do not want these items to appear in my menu.
有没有办法从菜单隐藏起来,但仍然是在站点地图(对于sitepath控制)。
Is there a way to hide it from the menu, but still be in the sitemap (for sitepath control).
感谢
推荐答案
我用这篇文章的时候,我想出现我发现这篇文章伟大停止节点:
I used this article when I wanted to stop an node from appearing I found this article great:
的http://runtingsproper.blogspot.com/2009/11/i-bet-you-didn-know-that-adding-custom.html
ASP.NET确实有功能来控制你要显示哪些节点,但我相信这是依赖于会员/角色。
ASP.NET does have functionality to control which nodes you want displayed but I believe this is tied to Membership/Roles.
这篇关于ASP.net菜单只显示Web.sitemap中某些节点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!