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. General Programming
  3. Visual Studio
  4. Roles is not working when in XML menu file

Roles is not working when in XML menu file

Scheduled Pinned Locked Moved Visual Studio
csharpvisual-studiosecuritycollaborationxml
1 Posts 1 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.
  • P Offline
    P Offline
    Pazzaraz
    wrote on last edited by
    #1

    Using Visual Studio 2005, .Net 2.0 I did the following:- Enables roles> in web.config, the following appeared> this is my authentication part: I then created 4 roles: Consultant, Team Leader, Project Leader, Administrator. and assigned each user one or more roles. When I check within code, user.isinrole("Adminstrator") = this works fine. I have a custom sitemap files, in web.config:- In "MainMenu.sitemap" I assigned roles, here is a snippet: but, all uses still see this menu item despite having the roles parameter. Any help would be appreciated.

    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