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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T04:41:33+00:00 2026-06-05T04:41:33+00:00

This is a question I can’t handle, so please, give me some advice. Here

  • 0

This is a question I can’t handle, so please, give me some advice.

Here is my code for getting names of all lists:

private List<string> GetAllLists()
    {
        site = SPContext.Current.Site;
        web = site.OpenWeb();
        List<string> listNames = new List<string>();
        var count = web.Lists.Count;
        for (int i = 0; i < count; i++)
        {
            listNames.Add(web.Lists[i].Title);
        }
        return listNames;
    }

It works, all ok. But when I want to connect to my sharepoint site from the internet or from phone, this method returns different names. All of them. Can you explain to me, why does this happens and what do I need to change?

Thanks!

  • 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-05T04:41:35+00:00Added an answer on June 5, 2026 at 4:41 am

    Assuming you’re looking at the same site when you connect, (some of the) list names may be translated and you’re getting a different result depending on the language your UI is running.

    See SPList.TitleResource on MSDN for an example of how to get the list name in different languages.

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

Sidebar

Related Questions

The entities and mappings I'm talking about in this question can be found here
Some background to this question can be found at Check printing with Java/JSP and
I don't know whether this question can be answered here, but I hope it
Variations of this question can be found all over the internet but not an
I've a question extending the code in this question : Can you multiply two
Hey folks, this question can't be too complicated. Please provide a solution to at
This question can be considered a follow-up to the following question: C++ temporary variable
EDIT: This question can be summed up as follows: How can two separate html
Following on from this question: Can't I use JQuery inside my FancyZoom popup? The
I know this question can be answered by searching in google. But I have

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.