.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

Adding List from another Site Collection

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

I want to add a list to as a web part on my page in Sharepoint 2007.


The catch is that the list is part of another site collection.

How do I sort this out.


I tried to go to the Data Source Library through Sharepoint Designer and tried adding a new Library.

But the lists from that Site Collection doesn't show.


Is there another way to do this?



View Complete Post

More Related Resource Links

SOLUTION: Renaming the Title list column globally across the site collection

So, you screwed up like I did, and modified the Title display name of the Item base content type and it has renamed ows_Title across every list in your site collection? Here's how you fix it: //WARNING //If you have come this far, be aware that this tool is a blunt axe. With it, you can cause //all sorts of mayhem and chaos in your site collection. So, to use this, you must be desperate. //or possibly dumb. Apparently, I'm just as dumb as you, because I did it. This is why I wrote //this stupid thing, so stupid people like us can go right on being stupid. //Your choice of weapon in this battle amuses me. Shall we begin? using System; using System.Collections.Generic; using System.Text; using Microsoft.SharePoint;   namespace RenameField {     class Program     {         static void Main(string[] args)         {             if (args.Length < 3)             {                 Console.WriteLine("Usage: RenameField <url-to-sitecollection> <internal-field-name> <new-fieldtitle>");               &n

CAML query to access List data across multiple site collection.

Hi   Is there any way to get the Task List data across multiple site collection using CAML query. Currently, I have the code which will retrieve the data from a single site collection. Below is the code.                           /***************************************************I am using Moss2007.Thanks!Ravi             SPSiteDataQuery q = new SPSiteDataQuery();             q.ViewFields = "<FieldRef Name=\"Title\" />" "<FieldRef Name=\"Status\" Nullable=\"TRUE\"/>";             q.Lists = "<Lists ServerTemplate=\"107\"/>";             q.Webs = "<Webs Scope=\"SiteCollection\"/>";             q.Query = "<Where>" +                                "<Eq>" +                                     "<FieldRef Name=\"Status\" />" + "<Value Type=\"Choice\">Not  Started</Value>" +                                     "</Eq>" +                         "</Where>";             DataTable dt=null;             using (SPSite s = new SPSite("http://banglabguest1:31000/"))             {                 SPWeb w = s.OpenWeb();                 dt = w.GetSiteData(q);                 w = null;             }                              *************************

c# How to get list of site collection features?

If I have a web application url, how can I get a list of the currently installed site collection features programmatically?

IE9, Site Specific Browsers, and adding your own Jump List Items to Pinned Tabs

Site Specific Browsers aren't a really new idea. In 2005 there was an app called Bubbles I ran for a while that would let you run a website with minimal "browser chrome." Mozilla Prism (né WebRunner) is a Firefox add-in that does a similar thing. Google Chrome includes the idea of Application Shortcuts. The idea of all this is that some web apps are really applications and you think about them as applications. For me, I think of Gmail and Facebook and Twitter and Basecamp as applications not necessarily as browser tabs. The notion of Site-Specific Browsers is definitely arriving. Internet Explorer 9 Beta (IE9) is out now and includes a featured called " Site Pinning " which is a effectively Site Specific Browsers. It's...(read more)

can we use one SharePoint list throughout the site collection?


hi all,

I want to use one list which should be accessible with in the SiteCollection. When I am Creating the List it is available in that purticular site only but i want to use the in all the sites in the siteCollection. So Please tell me how we can use a list in all the sites of the Site Collection?

thanks in advance.................

Update all Properties in the User Information List after restoring a site collection to a new domain


hi All

I moved a site collection (content db) from one domain to another. After the site collection was restored i ran the stsadm -o migrateuser -oldlogin -newlogin. The result was that the login id of the user in the source domain was replaced with the login in the destination domain.

However the rest of the properties in the User Information List (paricularly interested in the Email) was not updated.

How can i get all the properties in the User Information List with values in the new domain

Thanks in Advance


Remove List Field Type under site collection


Hi All ,

We have a custom field created and added the same under a webapplication , now I would like to remove this field type from a specific site collection , can anybody suggest as how to go about the same .





Create workflow to create list item in calendar list of a DIFFERENT site collection


I work for a school district.  Each school has a SharePoint calendar.  We set up each school as its own site collection.  I would like to create a workflow that would send their calendar events to a district calendar, which is also its own site collection.

Example,  School A enters creates a new item on their personal school calendar.  They click YES in the column called SendToDistrictCalendar.  The workflow would be triggered to create this same item in the district calendar (which is in a different site collection) when SendToDistrictCalendar is checked YES.

We're using Windows Server 2003 with Windows SharePoint Services 3.0

I am a mid-level SharePoint user.  I would appreciate ANY and ALL help to make this work!!


WSS 3.0 Cross Site-Collection List Lookup


Hi all

New to Sharepoint here, so apologies if the question is unclear.

We would like to store centralised reference data in a dedicated site-collection and allow it to be accessed from other site-collections using list lookups. Can anyone recommend a webpart that would allow us to do this? I've found lots of cross-site list webparts, but not for crossing SC boundaries. Is there an OOTB feature that we could extend to achieve the same thing?




If you have found this post helpful, please click the 'Vote as Helpful' link (the green triangle and number on the top-left).

If this post answers your question, click the 'Mark As Answered' link below. It helps others who experience the same issue in future to find the solution.

Designer Workflow: update list in another site within collection?

Is it possible with a Designer 2007 created workflow to update an list in another site within the same collection?  I don't see a way to do that and am wondering if I am missing something.
There are no mistakes; every result tells you something of value about what your are trying to accomplish.

Adding custom list to site definition


Hello All:

First I will explain what I was trying to achieve.

I wanted to create a site definition or site template with some common features e.g. document library with custom columns and then create many sub sites using that template or site definition.

But the idea is that once all the sites have been created and up and running, if it is required in future to modify the document library to either add or remove some columns then I will simply modify the template/site definition and then apply it globally and all the sites will get updated automatically which were created using that template/definition.

I discovered that I can not get it done using site templates as they are just snap shot of sites and any modifcation can only be applied to new sites created based on template not the ones which were already created.

So, if I go with Site Definition option, what is the best way to do it. Create a custom document library and then create list template based on that and then add it on site definition ?

Or create a feature and do it via code in feature activation.?

Or perhaps there is another better way to do it?

Any help is appreciated



SharePoint Developer

Copy list from one site to another site in same collection

What is the easiest way to copy a list from one site to another in the same site collection and still keep the meta data (e.g. created by, modified by)?  Can this be done through SharePoint Designer?

trouble moving list to another site in collection


I am trying to use the process for moving a list to another site: http://blog.henryong.com/2008/01/21/how-to-movemigrate-sharepoint-list-itemsdocuments-and-preserve-metadata-properties-at-the-same-time/at-the-same-time .

I get this error:

An error was encountered performing this operation.


Operation to Move 'Remove scroller in lower right corner' to '/sites/itd/SBTD/Lists/Website Requests' Failed
No items were moved. Please remove Remove scroller in lower right corner from the selection and retry operation

Can anyone tell me what went wrong.  Could not find referece to this error.  What scroller are they talking about?

There are no mistakes; every result tells you something of value about what your are trying to accomplish.

Programatically adding the "SummaryLinks" type column to the Site columns list



Can anyone help me with the sample code to programatically add the "SummaryLinks" type column to the Site columns list.



Adding users to a site collection with onlysearchwithinsitecollection enabled


We recently enabled  peoplepicker-onlysearchwithinsitecollection  and peoplepicker-Peopleeditoronlyresolvewithinsitecollection for one of our site collections.  Unfortunately it seems that once these properties are enabled no users from outside of the site collection can be added to the site collection, even by the site collection administrator. 

We did find that users can still be added to the site via power shell and other means but this is a less desirable solution for us.  Does anyone know if it is possible to only enable the resolve within site collection functionality for users other than SCAs or is it pretty much all or nothing?




Way of adding items in Drop Down List or List Box using Javascript

The article Way of adding items in Drop Down List or List Box using Javascript was added by raja.s on Sunday, June 06, 2010.

Hi,script type="text/javascript"> function AddItem(Text,Value) { // Create an Option object var opt = document.createElement("option"); // Add an Option object to Drop Down/List Box document.getElementById("DropDownList"

Array List with unique id while adding student info

Hello Frds,

I'm having arraylist to add student info but i have to create unique id per record below is my class.

Student objStudent=new Student(123,"Nj");

public class Student
  private string name;
private int RollId;
public string Name

    get { return name; }
set { name = value; }

public int Id
    get { return RollId; }
set { RollId = value; }
public Employee(string name, int id)


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