Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

SPWweb Issue

$
0
0

Hi,

I have many site collection and many web under that site collection. I just have the web id or web url(don't have the site collection url ). I have to access the document library of the webs.

I have the following code.

using (SPSite oSPSite = new SPSite(Guid.Parse("XXX")))

            {

                using (SPWeb oSPWeb = oSPSite.OpenWeb())
                {

                }
            }
Its giving one error. No web found with that guid.


Shubho


Viewing all articles
Browse latest Browse all 7589

Trending Articles



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