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 8580801
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T20:54:16+00:00 2026-06-11T20:54:16+00:00

I am using the ASP.NET MVC SiteMap provider in a project, and it is

  • 0

I am using the ASP.NET MVC SiteMap provider in a project, and it is working great. I am having a tough time trying to figure out how to hide a menu item however. The menu item I want to hide from displaying in the global navigation is my “Site Map” page. Now I know that there is something called a VisibilityProvider available to me on the mvcSiteMapNode – but I can’t seem to figure out how to make it work.

  • 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-11T20:54:17+00:00Added an answer on June 11, 2026 at 8:54 pm

    First, I suggest you read this wiki page: Creating a Custom SiteMapNodeVisibilityProvider. Then for the specific node that points to your Site Map page, declare it this way:

    <mvcSiteMapNode title="Site Map" controller="Home" action="Map" visibility="false" />
    

    Now, when implementing the IsVisible method (shown in the wiki page linked above), you can do this:

    string visibility = mvcNode["visibility"];
    
    // Is a visibility attribute specified?
    if (!string.IsNullOrEmpty(visibility))
    {
         isVisible = Convert.ToBoolean(mvcNode["visibility"]);
    
         if (!isVisible)
         {
              return false;
         }
    }
    
    return true;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using ASP.NET-MVC and nHibernate for the first time. Great tools, but big
I'm using ASP.NET MVC 3 and ASP.NET MVC Sitemap Provider . I would like
Using ASP.NET MVC when trying to get the information stored on my Session[objectName] from
When using ASP.NET MVC plus Entity Framework, and trying to implement a generic repository
I'm using ASP.NET MVC 3 to build an application, but i'm having a problem
I am using ASP.NET MVC 3 + Ninject in my application which works great
I'm using the MVCSitemapProvider for my ASP.NET MVC 3 project, I have a dynamic
I just checked out a asp net mvc project from out TFS. After installing
I'm using ASP.NET MVC Framwork and trying to grok the ASP Membership 3.5 stuff.
I am using asp.net mvc 3 jquery validate unobstructive javascript. I am trying to

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.