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. Web Development
  3. SharePoint
  4. C# SharePoint get folder list

C# SharePoint get folder list

Scheduled Pinned Locked Moved SharePoint
csharpsharepointdesign
3 Posts 2 Posters 2 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.
  • W Offline
    W Offline
    Wheels012
    wrote on last edited by
    #1

    Good morning. I was wondering if there was an easy way to access the list of folders and subfolders from a SharePoint site. I have the following so far:

    namespace SharePoint_Tree
    {
    public partial class _Default : System.Web.UI.Page
    {

        //public static void Main()
        //{
        //}
    
        protected void Page\_Load(object sender, EventArgs e)
        {
            teamspace.Lists tsl = new teamspace.Lists();
            tsl.Credentials = CredentialCache.DefaultCredentials;
            
            XmlNode resp = tsl.GetList("Content and Structure Reports");
    
            this.Response.Write(resp.OuterXml);
         }
    }
    

    }

    Thank you, WHEELS

    N 1 Reply Last reply
    0
    • W Wheels012

      Good morning. I was wondering if there was an easy way to access the list of folders and subfolders from a SharePoint site. I have the following so far:

      namespace SharePoint_Tree
      {
      public partial class _Default : System.Web.UI.Page
      {

          //public static void Main()
          //{
          //}
      
          protected void Page\_Load(object sender, EventArgs e)
          {
              teamspace.Lists tsl = new teamspace.Lists();
              tsl.Credentials = CredentialCache.DefaultCredentials;
              
              XmlNode resp = tsl.GetList("Content and Structure Reports");
      
              this.Response.Write(resp.OuterXml);
           }
      }
      

      }

      Thank you, WHEELS

      N Offline
      N Offline
      Not Active
      wrote on last edited by
      #2

      Now that you've found the correct forum, go look for yourself. Microsoft has a very special place for this type of information, it's called documentation[^]


      only two letters away from being an asset

      W 1 Reply Last reply
      0
      • N Not Active

        Now that you've found the correct forum, go look for yourself. Microsoft has a very special place for this type of information, it's called documentation[^]


        only two letters away from being an asset

        W Offline
        W Offline
        Wheels012
        wrote on last edited by
        #3

        Thank you Mark.

        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