Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Userrights to show menus

Userrights to show menus

Scheduled Pinned Locked Moved ASP.NET
questiontutorialcsharpasp-net
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    martinx
    wrote on last edited by
    #1

    hi, i don't know if this is the correct forum if not please transfer it to the correct one. i have a question how to handle userrights. at the moment i wanna make for my page userrights which menupoints the user can see. i don't use the asp.net membership provider. i have a user table , a role table a rolegroups table and a userright table. when a user is logged in i look in the userrights table (from my masterpage where the menulinks are created) which menupoints the user can see (for example the user1 is in the group visitor1 he can see link1,link2, link3) user2 is in the group visitor2 he can see link2 and link3 what are the best way to handle this ? because my solution is very slow. specially how can i use session variables or is there an effectiv solution

    C K 2 Replies Last reply
    0
    • M martinx

      hi, i don't know if this is the correct forum if not please transfer it to the correct one. i have a question how to handle userrights. at the moment i wanna make for my page userrights which menupoints the user can see. i don't use the asp.net membership provider. i have a user table , a role table a rolegroups table and a userright table. when a user is logged in i look in the userrights table (from my masterpage where the menulinks are created) which menupoints the user can see (for example the user1 is in the group visitor1 he can see link1,link2, link3) user2 is in the group visitor2 he can see link2 and link3 what are the best way to handle this ? because my solution is very slow. specially how can i use session variables or is there an effectiv solution

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Why is it so slow ? Perhaps you need to reengineer it ? How are you generating menus ? I'd think if the menu never changes,. you could indeed generate it once, then store it somewhere. Or if it takes a long time to generate, you could generate it and store it so that you can just pull it from your DB, for example, without having to do the calculations every time.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • M martinx

        hi, i don't know if this is the correct forum if not please transfer it to the correct one. i have a question how to handle userrights. at the moment i wanna make for my page userrights which menupoints the user can see. i don't use the asp.net membership provider. i have a user table , a role table a rolegroups table and a userright table. when a user is logged in i look in the userrights table (from my masterpage where the menulinks are created) which menupoints the user can see (for example the user1 is in the group visitor1 he can see link1,link2, link3) user2 is in the group visitor2 he can see link2 and link3 what are the best way to handle this ? because my solution is very slow. specially how can i use session variables or is there an effectiv solution

        K Offline
        K Offline
        kumar_k508
        wrote on last edited by
        #3

        Hi, By using javascript also you can set the access for different user's

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups