隐藏ASP.NET菜单项 [英] Hiding ASP.NET menu items
问题描述
我想隐藏所有不属于"经理"角色的用户在我们母版页上的菜单项。 看下面的页面,我认为这可以通过启用安全修整来完成,但'securityTrimmingEnabled =" true"'不在Web.config intellisence
中,并导致错误,就像在站点地图文件中设置它一样。 最好的方法是什么?
I want to hide a menu item on my master page for all users who dont belong to the 'Managers' role. Looking at the below page I thought this could be done by enabling security trimming but 'securityTrimmingEnabled="true"' is not in Web.config intellisence and causes an error as does setting it in the sitemap file. Whats the best way to do this?
http:// msdn .microsoft.com / zh-CN / library / ms178428.aspx
推荐答案
您好,
我看过那个链接,甚至还看了一下如何使用它的演练。
I've looked at that link and even also to the walkthrough how to use it.
我在这个论坛的页面上没有看到任何VB Net代码是的。
I did not see any VB Net code on that page where this forum is for.
在我的想法中,您当前的问题是一个典型的ASP.Net论坛问题
In my idea is your current question a typical ASP.Net forum question
http://forums.asp.net
http://forums.asp.net
这篇关于隐藏ASP.NET菜单项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!