Tagged Questions
0
votes
2answers
100 views
How check if a site (not site collection) has sub sites in it? [Object Model]
I am trying to figure out a way to check if a Site inside a Site Collection has sub sites in it.
To get sites inside a site collection, we can use the below code.
foreach (SPWeb siteobject in ...
1
vote
1answer
217 views
Get all webs with certain property value
If I have a certain number of webs within my site collection, and those web have set some property, eg. web.Properties["foo"] = "bar". I'd like to get list of all the webs which have property foo set ...
3
votes
4answers
1k views
Get SPWeb by ID without Site Collection?
I have a list of SPWeb IDs and would like to open the associated SPWeb objects. However, I do not know in which Site Collection they are (I DO know that they are in the current Web Application ...