Rank: Member Groups: Member
Joined: 9/1/2010 Posts: 28
|
Is there a way to set a menu option Visible="False"? This is for security to basically modify the menu at run time depending on the "role".
Thanks
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi, Both the Menu and each MenuItem support Visible property. The MenuItem class also supports AllowRoles property. You can take a look of the reference section for these properties for more details: http://doc.essentialobjects.com/library/1/eo.web.navigationitem.visible.aspxhttp://doc.essentialobjects.com/library/1/eo.web.navigationitem.allowroles.aspxThe Menu's Visible property is inherited from Control class, thus reference for that property is in MS documentation. Thanks!
|