开发者

How to hide an ASP.NET menu item?

This question was asked before but what I need is to simply hide a menu Item rather than remove it . I was surprised to see that ASp.NET MenuItem has no Visible开发者_运维问答 property. is there any way really yo hide a menu Item

Thanks


you can hide the menu item using css. just use CssClass property. Using CSS and Styles with the Menu Control


I ran into the same issue and my work around was actually having two separate menus. I assigned my Admin controls that i wanted to hide in its own menu. I positioned them next to eachother as if they are one and i hide the menu when the user doesn't have access in my codebehind.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜