Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

ASP.NET 2.0 Menu

  • 20-07-2005 11:54am
    #1
    Registered Users, Registered Users 2 Posts: 604 ✭✭✭


    Howdy,

    Im trying to build a user role based dynamic menu with the new asp:Menu control. Im having some problems figuring out what way it works. I have a table called menu items which has a list of links and the userlevel required in order to access them.

    What i want to do is some how link the Menu to this table and only show the links that the current user is allowed to view but i cant seem to get it working. As its quite a new control and still in beta theres little code samples online but i wonder if anyone here has played around with it ?


Comments

  • Moderators, Science, Health & Environment Moderators Posts: 9,035 Mod ✭✭✭✭mewso


    I've tinkered with it. It's primarily aimed at hirerarchical data like xml. Of course you can use a table but you would probably need to create the menuitems in code and decide whether to create each item depending on the user as you go.


  • Registered Users, Registered Users 2 Posts: 604 ✭✭✭Kai


    Yea thats pretty much the same assumption ive come to it when researching it. i can only manage to find examples which use a sitemap.web file which doesnt match my needs.


Advertisement