SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

We have a bunch of projects each represented by a Sharepoint 2010 subsite.

We would like to store and track metadata and run reports across this list of subsites.

Is there any way to query and maintain a current list of subsites? In excel? Into a regular SharePoint list?

Thank you!

share|improve this question

I'd suggest to leverage the SPDataSource control and it's Webs DataSourceMode.

After creating the datasource, you can display the list of subsites using SPGridView or DataFormWebPart (where you can use XSLT to format the output) or any other control which can grab data from IDataSource.

Please have a look at the following article for details and example:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.