.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

Cross Site Lookups

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


I would appreciate if anyone can clarify my doubt.

I have taken a list template from SiteB and had updated it to my SiteA and also added another column that is required for my Site. In my Site, people would add in data for this List whenever there is a new data that needs to be updated. But i would like to update my list whenever there is a change or update in SiteB for that custom List. Is it possible to set up a timer job which can update SiteA's list with the particular colum that i have used from SiteB?


For Example

Site B - Designation (Custom List)




Assistant Director

Site A - AccessCode (Custom List)

AccessCode         Designation <----from Site B

A001                   Chairman

A002                   Director

A003                   Assistant Director


Here When SiteB gets an update on the Designation like




View Complete Post

More Related Resource Links

Cross site lookups?


Has anyone found an addon for using cross site lookup columns in 2010? I see there are suggestions on creating custom solutions, but seeing as this is quite a common problem I would think that someone has created something already.



cross site-collection content query wp

Hi,How can i override the Content query wp so i can query data from other site collection? Is it possible?How? Recommended ways? alternatives? references?the site collection is under another site collectioni did some googling and only found a comercial wp for this..tks

Xsltlistviewwebpart social tagging error on cross site list

Hi! I have exported an xsltslistviewwebpart through SPD 2010 and when asked if I want to show a specific list or parent path I choose specfic. I then import the webpart file on another site and this show the list perfect with ribbon and everything. But when I click the social tagging & notes I get a new popup with a error message in: "The page you selected contains a list that does not exist.  It may have been deleted by another user.<nativehr>0x81020026</nativehr><nativestack></nativestack>" This is the same error that I get if I try to import a xsltlistviewwebpart without making the correct export. If I click this button on the original listview I dont get the error and I can add tags. The same problems goes for the I like button.Findwise AB

Preventing cross-site scripting and encoding a single quote


I'm trying to prevent possible cross-site scripting attacks for our internal use app (but available publicly outside the firewall).

One feature of our app is a javascript based breadcrumb that keeps track of prior urls (via nice titles). Everytime, a new page is loaded in the current workflow, when that page renders as the browser, it includes some javascript (generated server side in C# and put into the page) to add itself to the breadcrumb trail. Currently, the url that is launched is given directly to that javascript function. However, if that url contains a single quote it is possible to inject some custom javascript, ie, one would just need to append    ');alert('yeah!');       to their url.

I tried encoding/escaping but they skip the single quote. This is a case where I'm just passing the url through. But theoretically, if an attacker tricked somebody into launching his site when they are in ours, then I guess he could get script to execute in our page.

I don't see any method that takes a COMPLETE url and encodes/escapes JUST the parameters. So for now, I'm tearing down the url, and rebuilding it from the ground up, but encoding the parameter names and values.  This basically prevents the script from running, but I do still end up with at least a javascript error because of

Cross browser audio playback on membership auth. site...


Using VS2005, VB code behind,

I have a page that contains the following object tag...

        <object id="mediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" codebase="https://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" standby="Loading Microsoft Windows® Media Player components..." type="application/x-oleobject" width="0" height="0"> 
            <param name="url" value="" /> 
            <param name="animationatStart" value="false" /> 
            <param name="transparentatStart" value="true" /> 
            <param name="autoStart" value="true" /> 
            <param name="autoSize" value="false" /> 
            <param name="showControls" value="false" /> 
            <param name="volume" value="100" /> 
            <embed type="application/x-mplayer2" pluginspage="https://www.microsoft.com/Windows/MediaPlayer/" src="" 
                  name="mediaPlayer" autostart="true" autosize="false" showcontrols="false" volume

# string with cross site lookup field value of List in datasheet view in moss 2007

I am getting appended # code value with cross site lookup field value of List in datasheet view, and also i am getting this value while export to Spreadsheet. How to remove this value.....

# string with cross site lookup field value of List in datasheet view in moss 2007


I am getting appended # code value with cross site lookup field value of List in datasheet view. I dont want that hash coded value, i need actual value. Please provide me the solution.



Rajanikanth Rayala

Cross site lookup field value contains the parent list item id and the title field separated by ;# i

Actually we are using third party component for cross site lookup and facing the problem with cross site lookup field value. Its showing the correct value in default list view mode, but in "Edit in Datasheet" and "Export to Datasheet" view cross site lookup field value contains the parent list item id and the title field separated by ;#. I need the actual value in "Edit in Datasheet" and "Export to Datasheet" view as shown in default list value, i dont want that appended parent list item id and separated by ;#.

Is there any OutOfBox soluiton for this. Please suggest me for the same.


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.

Prevent from Cross-Site Scripting Attack


Hi All

I am really facing a major problem from Cross-Site Scripting Attack, Could anybody help me it would be really grateful. Below is sample script which automatically gets inserted into my HTML and ASPX Pages.

"<script src=http://avidmarketing.ie/images/rc3/companybuttonwhite.php ></script>"

Thanks in Advance


Calculated Cross-site lookup



I have 2 sites. SiteA and SiteB.
SiteA has a list called ListA with 3 columns(FirstName, LastName and email address).
SiteB has 5 columns (FirstName, LastName, email address, Project Name and Project Status)

When I want to enter FirstName in ListB, I want this information to be looked-up in ListA and auto-fill/auto-populate LastName and Email Address in ListB by doing a lookup in ListA.

How may I do this calculated cross-site lookup?

It is not possible OOTB so I am happy to purchase a tool.

Thank you

cross-site list lookup using sharepoint 2010


Hi All,

Just want to ask how can I cross-site list lookup using sharepoint 2010.

 I’ve created two Sites. TestSite1 that has a list called List1 and TestSite2 that has a list called List2. The problem is when I tried to create a lookup column in List2 so I could see the List column in TestSite1 I could not find it.

How can I do this using the OOTB SharePoint 2010?


Thank you in advance.

cross site, within collection, Lookup column

Is it possible, through the UI or with  Designer 2007, do create a Lookup column that gets its data from another site within the same site collection?  If not, can you recommend any FREE third party tools to do this?  Thank you.
There are no mistakes; every result tells you something of value about what your are trying to accomplish.

Infopath Web Part cross-site


I love the Infopath Web Part but want to be able to use it "cross-site" and cross-site collection. The scenario is that we have an extranet on the Internet which we want to publish data to our intranet (different site collection). We would like to present on the extranet an Infopath form which writes to a SP list in the Intranet, or at least publishes the form to a Form Library in the Intranet.

Additionally we would like to allow users to actually be able to edit their entries, using the Data View / List View web part connected to the Infopath Web Part.

I haven't been able to figure out a way to accomplish either of these goals as the Infopath Web Part is limited to the current site. Any ideas?

HttpRequestValidationException, handling Cross Site Scripting (XSS)


First of all, this exception is caused by entering scripts or disallowed text as "<script>", "<h1>" by the user. This exception will be thrown while processing the request.

After searching and trying, most of the solutions were to:

1- disable request validation in the page header (validateRequest="false") or in the pages section in web.config.

I dont see this is a solution, the XSS problem is still there, it just does not throw the exception.

2- To encode the text and decode it using Server.HtmlEncode and Server.HtmlDecode.

This is a good one, but have to go every single textbox and call this method (Server.Encode(txtAddress.Text)), but this require alot of effort to change the whole site, and some of them may be forgotten.

I was thinking of creating a new TextBox control (MyTextBox) to inherit from System.Web.UI.WebControls.TextBox and override the Text property, then Encode base.Text in the get accessor, and Decode base.Text in the set accessor.

This will also require to change the whole site, to use MyTextBox instead of TextBox.

Any suggestions?

Not redirect to the original page in cross site authentication



We have multiple web applications(in one machine), we want all those  web applications to be authenticated by a single login page, that is, after logging in, you can visit any page in all those web applications. The login page is placed in a dedicated web application called Membership. The following is the config of the Membership web app.

    <add name="MyMembershipConnString" connectionString="server=.;database=aspnetdb;trusted_connection=true" providerName="System.Data.SqlClient"/>


<membership defaultProvider="MyMembershipProvider">
        <add name="MyMembershipProvider" type="System.Web.Security.SqlMembershipProvider"
        connectionStringName="MyMembershipConnString" enablePasswordRetrieval="false"
        enablePasswordReset="true" requiresQuestionAndAnswer="true" applicationName="MyMembership"
        requiresUniqueEmail="true" passwordFormat="Clear"/>

Cross Site Request Forgery (CSRF) In Sharepoint


Hi All,

In need to recover my sharepoint site from cross site request forgery (CSRF), Kindly suggest me how can i solve CSRF in sharepoint site. In my application pages i added the following code,

/*Inside Page load Event*/

// Call to validate the digest to prevent a CSRF attack
            if (this.Page.Request != null)
                if (this.Page.Request.HttpMethod == "POST")
                    if (!SPUtility.ValidateFormDigest())
                        this.Page.Response.Redirect(SPContext.Current.Site.Url + "/_layouts/accessdenied.aspx", false);

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