It seems simple, but i cant fugure out how can i get SPWebCollectionfrom URL like:
which will include it and all of it subsites:
I start so:
SPSite launchsite = new SPSite(textBox1.Text);
SPWeb launchweb = launchsite.OpenWeb();
SPWebCollection mywebcollections = launchweb.Webs;
But .Webs gets only 1 level subsite excluting root. It doesnt fit.
SPWebCollection mywebcollections = launchsite.AllWebs;
AllWebs get all sites ignoring startURL.
View Complete Post