This is how the navigation menu looks like. Done with HTML, CSS and placed in the master page.
The idea now, is to show/hide the items and sub items based on user permissions.
For eg: a user has the permission for only sub2-2 and sub3-1...etc. So he should not see the other items in menu when he logs in.
The necessary tables and assigining roles is done. I need to apply those to the menu, somehow. Is it possible.(using ASP.Net, C#)
ITEM1 ITEM2 ITEM3
SUB2-1 SUB3-1
SUB2-2 SUB3-2
Looking at the asp:Menu control, but seems it doesnt have the 'visible' property for li items.
Basically I am looking for something like an object/control/method,.. which I can loop through, check for each item and make it visible or hidden. Please suggest the best approach.