.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

How to loop through all the lists in a site and its subsites

Posted By:      Posted Date: October 22, 2010    Points: 0   Category :SharePoint

Is there a way we can loop through all the lists created in current site and its subsites. I am looking for only Lists that are created in a site and all the subsites under it.

Any Ideas



View Complete Post

More Related Resource Links

Recursive get Lists from Main site and all subsites by using webservice.



How can I recursive get Lists from Main site and all subsites by using webservice.

    Dim websService As New TestWebService.Lists()
    Dim ndLists As XmlNode = websService.GetListCollection()

This way I only can get the current site lists, but not the subsites. Do I have to reference all of the subsite webservcie? Thanks!

When Upgraded a site from Wss 3.0 to Sharepoint foundation 2010, subsites are not working

HI ALL, I recently migrated an old Sharepoint site from WSS 3.0 to Sharepoint foundation 2010. There were no problems during the upgrade and the stsadm command displayed the message that upgrade completed successfully. However when I am accessing the sub-sites from outside the server, I am able to see the content, but when I go to Site Settings, I get an error "File not found". Also the Views for the sub-sites are not working. However on accessing the sub-sites from the Server everything is working fine. Can anyone please help me?  

Need link to parent site from subsites

We have migrated the 2003 site to MOSS environment and that site collection has around 100 sub sites.   In original site we had link to parent site on all sub sites of it.(that link is at right corner of the site)  Unfortunately this option got disappeared after migration to MOSS environment.  and  breadcrumb option also disappeared here we can manually add link to parent site on all subsites either at toplink bar or in mylinks colums but doing this in 100 sub sites is hectic job. We have tried out by making changes at master page by taking site collection masterpage but the changes which we have made not inherited to all sub sites  and also we have enabled the feature of publishing at parent and sub site level and tried to inherit the master page of parent site but it is not getting inherited. Is there any way we can figure this . thanks ..... Ram

How to all the Subsites and Site Collections under a top level site collection using client object m

Hello Everyone, I need to know how to get all the subsites and the site collections under a top level site collection using client object model in SilverLight. When I use WebCollection webcoll= ctx.Web.Webs I'm getting the getting subites but i'm not getting the RootWeb and Othe SiteCollections created under the Top Level site collelction.

Create a Site template with subsites in Sharepoint Server 2010

Hi, I'm with my first SharePoint project, and we are using server 2010 as a Document Management system. The thing is our company has about 300 customers, and we have to create 300 site collections, 1 per customer.  For each site collection, I use the blank site template, and it's very simple page, as I just need a document library in the home page, and then I need to create a subsite called "cases" and the inside profiles, the users create a document library for each case. For subsite I mean, I create a new site and I choose the option to share the top menu, so basically the site has 2 tabs. So basically what I need is a template that has 2 tabs, Home and Cases. Home with a document library in home and Cases empty. Is there a simple way to achieve this? I guess maybe I have to edit some XML files to create a Site Template. If this is the case, can someone point me to the right documentation. Second, I need to create a Visual Basic project so that the final user has a form, and he just inputs the Customer Name and the code must automatically create a new site with the template I metioned before. I guess that once I have the template this won't be very hard to achieve, as I have seen this SPSite class. The question is, can I have the template with the 2 tabs, o maybe I have to use 2 templates, and write code to create the home site and the Cases Subsite.. Ple

Sharepoint 2010: Get error: You do not have permissions to have lists and pages within My Site.

I am using the administrator login for the sharepoint 2010 farm.  I'm able to access My Site.  However, when I click on My content, I'm getting You do not have permissions to have lists and pages within My Site.   Any ideas?   Thanks.

How to connect 2 Lists Sharepoint site through Designer

Hello to all I am siddiqali new to sharepoint 2010,I want to know how can i connect 2 lists in sharepoint 2010 without using code ,look ups and visual webpart. I am guessing that it can be posibble through designer,but as i am new to sharepoint i am not able to do it  Example If in 1 list student number,name,class,section is existed ,In other list if we enter student number in text box we should get the student information   Thank You, MD.SIDDIQALI

How to save site template with subsites..?



I am trying to save site as template., and found that subsites are not part of that site template..

Can anybody tell me how can I save site as template with subsites.?...



Maximum number of Document libraries or Lists that can be created in a Site collection of sharepoint


Hello Guys, 

what is the maximum limit for creating document libraries in sharepoint 2010, is there any limit? if so can you give me the number and details where do i find it.

Thanks in advance.

Did New-SPContentDatabase and completed with errors, no lists or content on site


Hello team,

I know I am missing something here, and I have searched, but I cannot seem to find the missing piece.  I did a new-spcontentdatabase to connect my sp2007 05 db to my sp2010 08 db environment.  It went through and went to 100% and then said it was completed, but with errors.

I looked through the error log and it was all 'could not parse date/time string; string not recognized'.  So I figured I would not be overly worried about it.  Now here is where my delusional thoughts come in and I need help.  I had assumed (yeah i know 'assumed') when I created a site under the new web app it would populate all the lists and everything from the content database.  It obviously didn't, how do I get that?


SharePoint tool - sites, subsites,lists,listitems creation


Hi All

Recently I am investigating on a tool which can do the following-

1) helps in creating multiple number of sites, subsites, lists and list items

without having me to manually do all those actions.



This is because I am in the process of building a test environment for SharePoint which needs to have 100GB of data dispersed among different sites and subsites which turns out to be really tedious for me to create all these manually and fill the data

Does anyone have any idea of existence of such a tool.


Can some one help me with ideas to achieve this





Cascade Update Site Icon to all Subsites

I added a new icon to my site collection, and I would like to update all the subsites with this new icon.  Is there a way to change the icon on the site collection root site, and then cascade that change to all the subsites in the collection?

How to show Only Subsites under Current site in Quick launch?



I am working on my custom master page and i would like to show top navigation with 2 level deep. In quick launch, i would like to show only subsites under the parent site. Which datasource i need to use and how can i hide rest of them like Libraries,Lists, Discussions etc.

Any help is appreciated.


How to Get ListItems count in all the lists of a SharePoint site through Silverlight Client object m

Hi All, I need to get the count of the ListItems in all the lists in my sharepoint site. This is my coding

 How much ever i try I'm getting an exception " The property or field has not been initialized. It has not been requested or the request has not been executed. It may need to be explicitly requested."

Alerts not working for Lists on FBA / Anonymous access site


Hi Folks,

I have a WSS3.0 site that allows anonymous access as well as using FBA. Another web application is configured to use the same content database but set with windows authentication.

Anonymous users are allowed to post to a few Lists. I am trying to create an alert for an authenticated user (either FBA or Windows). I receive the "You have successfully created an alert" email, but no emails are sent when new items are added. This is the case for all new list items whether they are added by an authenitcated user or an anonymous one.

I am sure the site config is set correctly (but I will double-check). Is there any reason for the behaviour I am experiencing? I'm not at the latest patch level (we are using the June 2009 CU), so perhaps this was an issue that has been resolved in a later patch/update that I ought to apply?

Would appreciate any gems of information anyone might have on the subject before I go away and write my own event handler to send an email!!!


Is a Site that contains multiple Lists where the list should be able to create an InfoPath Form(form


I guess what I'm asking is, is this possible?

I have a System that I'm trying to implement in SharePoint. It basically is a Site that contains multiple Lists. The list should be able to create an InfoPath Form(form1). Then I need to create multiple InfoPath forms(form2) that is basically a sub-form of form1. Form2 will have its own List containing only form2's that relate to form1. Then create sub-form(form3) to form2.

Using a combination of InfoPath and SharePoint is this possible?

Deny the access to subsites for FBA enabled SharePoint 2010 site using visual studio



I've created a FBA enabled site.In that I want  my FBA users would not able to acess specific subsites.And I want to acheive it programatically.Pls help me.



ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend