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

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

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

Posted By:      Posted Date: May 22, 2011    Points: 0   Category :C#


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!

View Complete Post

More Related Resource Links

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


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



internal hyperlink is not showing in main web site hyperlink list

Hi, I am using sharepoint designer 2007. I move data from 32 bit to 64 bit architecture. some of the hyperlinkslinks are not showing in my website hyperlink list hence site is not working correctly. what should I do? How can I show internal hyperlink?  

SP Webservice:Lists.GetListItems

i want to get all list items in "test" list Lists.GetListItems("test", null,null,null,null,null,null), but it returns only the first page. about Lists.GetListItems Method http://msdn.microsoft.com/en-us/library/lists.lists.getlistitems.aspx, in the "Remarks",  "includes a ListItemCollectionPositionNext attribute inside the rs:Data element", i can find the node but how can i get the next page items? any help?  

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?


Unable to write webservice for sharepoint site


Hello all,

I want to write webservice for Autocomplete textbox in sharepoint webpart.

can you please tell me steps ?



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





lists.asmx webservice an unexpected error occured


I have a sharepoint site and am using the list.asmx webservice to update rows in a list.  My code was working well.  For some reason, after doing a very large batch of updates, the same code now gives this error each time I run it.  The strange thing is that everything worked, I did a large batch then everything broke.  I switched to another site and it worked again.  I did a large batch and everything once again broke.

<Result ID="1,Update" xmlns="http://schemas.microsoft.com/sharepoint/soap/"><ErrorCode>0x80131904</ErrorCode><ErrorText>The operation failed because an unexpected error occurred. (Result Code: 0x80131904)</ErrorText>

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.

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