Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8120631
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:12:29+00:00 2026-06-06T05:12:29+00:00

I have a website that has highly granulised access and hence requires many web.config

  • 0

I have a website that has highly granulised access and hence requires many web.config files. The problem is I would like to trim the menu so that only certain users will have access to certain folders. I have enabled trimming and setup roles in the sitemap, however when I access the page the menu is not show, as I am authorized to view the default page which is not in a subfolder.
When I type the url of a page in sub folder’s I have access.

How should I handle this:

  1. A site map for each web.config file – don’t know how this will work
  2. Removing the sub web.config file to only use a single one
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:12:30+00:00Added an answer on June 6, 2026 at 5:12 am

    You don’t need a site map for each web.config file. When using the sitemap with a menu control and SitemapDataSource, ASP.NET will determine whether you have access to each page named in the sitemap through your configured MembershipProvider and/or RoleProvider, and if you do have access, the sitemap entry will be displayed in the Menu.

    Note, that if you do not have access to all of the parents of an item in the sitemap, you will not be able to see that item. You can configure your SitemapDataSource with StartingNodeUrl to change where the root of the Menu is set within the sitemap.

    As far as why you don’t see the default page in your Menu, if you can access the default page via entering the URL directly then the problem is most likely that you do not have the Menu or SitemapDataSource set up properly. For help with that, see: http://msdn.microsoft.com/en-us/library/ms227441.aspx and http://msdn.microsoft.com/en-us/library/system.web.ui.webcontrols.menu.aspx#binding_to_data

    If you need additional guidance I suggest you try to narrow down the exact cause of the issue, since Membership, Roles, Sitemaps and Menus are a pretty broad set of topics and there are tons of pitfalls that may occur. Get your Menus up and running without security trimming, and verify that Membership and Roles are working properly before you try to link the two.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work at a company that has many clients that have their own website
We have a process in place that uploads files to our website. It has
I have a highly complicated web site that is under source control and has
I have a website that has 2 files as follows: page.aspx page.aspx.cs It used
i have taken over a website that has tons of css files and lots
I have a website that has a forum with users. I would like to
So basically I have website that has names of cities that can be checked
I have a website that has approx 1000 different strings in a mysql database
I have a website that has a relative path to a stylesheet that looks
I have a travel related website that has been online for several years (since

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.