Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

how to call a folder within the library

$
0
0

Hi,

I would like to know how do I call the 2014 library of the Doclib(document library) of my site using C#

http://mySPSite.com/DocLib/2014

                  

I tried the following, but it said list "2014" does not exist at the site with the url http://mySPSite.com, please advice. Thanks

SPDocumentLibrary oSharepointDocsRoot = (SPDocumentLibrary)oSharepointWeb.Lists["DocLib"];

SPDocumentLibrary oSharepointDocs = (SPDocumentLibrary)oSharepointDocsRoot.Lists["2014"];


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>