0
votes
1answer
631 views

Get N Number of subwebs for specified web

How to get All Subwebs upto N Levels for Specified Web. eg. My Site url is... "http://server/web1" I need all subwebs upto N Levels for web1.. below line get all subwebs upto N Levels of ...
1
vote
3answers
101 views

How to get all SPWebs using visual studio?

I want to get all webs including it's subwebs. Eg. Site web1 subweb1 subweb2 web2 How to achieve ?
6
votes
3answers
3k views

Disposal of SPWebs retrieved from SPContext.Current.Site.AllWebs

As there was a minor disagreement on whether SPWebs retrieved from SPContext.Current.Site.AllWebs should be disposed, I thought it would be appropriate to post a new question and discuss it here. I ...