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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:05:48+00:00 2026-05-27T05:05:48+00:00

I have sharepoint site and i want read in code global navigation information. On

  • 0

I have sharepoint site and i want read in code global navigation information.

On properties page:

/_layouts/AreaNavigationSettings.aspx
I added “location”,”organization”,”98″ nodes.

enter image description here

But when i am trying to get those nodes in code

  using (var site  = new Microsoft.SharePoint.SPSite(URL))
            {
                using (var currentWeb = site.OpenWeb())
                {
               return currentWeb.Navigation.GlobalNodes;

            }

}

I have always those nodes:

  • Home
  • Quick launch
  • SharePoint Top Navbar

Why i have those strange nodes and how to get real globan naviigation/?

  • 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-05-27T05:05:49+00:00Added an answer on May 27, 2026 at 5:05 am

    SharePoint’s navigation is hierarchical. The hierarchy has exactly three nodes:

    • Home — represents the single ‘home’ icon in the upper left;
    • Quick launch — represents the quick launch menu at the left side of the page;
    • Top navigation bar — represents the navigation bar at the top of the page.

    You have to delve into subnodes of these node to find your three nodes — see the SPNavigationNode.Children property. SharePoint lacks unique identifiers for navigation nodes so you have to rely on titles (display names).


    UPDATE: Also please note that your code contains a serious design flaw. You are returning an object that’s logically nested within a SPWeb out of the scope where the SPWeb instance is alive—i.e. out of the using statement. While this may work for navigation nodes generally such behavior will lead to errors. Those errors are often handled internally by SharePoint and result ‘only’ in logged error messages, but that’s definitelly what your code should produce.

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

Sidebar

Related Questions

We have online SharePoint site and we want to use tool or any way
i have the sharepoint site , infact it is MOSS site. I want to
I have to call some code in a SharePoint site that runs under the
I have 5 different infopath forms.on sharepoint site , i want to upload them
I have a Custom Action on the Site Settings page of my SharePoint site
We have a SharePoint site and we now want to only allow users that
I have a requirment where in my sharepoint site I want to set the
I have a SharePoint 2007 Server and want to create a site with a
I have a sharepoint site and want to create a script for links with
I have created the sharepoint site . I want to assign the name as

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.