开发者

Sharepoint 2010 Show SPList on webpart from a remote SPSite

开发者 https://www.devze.com 2023-04-01 22:34 出处:网络
Im new to sharepoint and im trying to get a SPList from another SPSite i have on same farm, that itself is not a problem.

Im new to sharepoint and im trying to get a SPList from another SPSite i have on same farm, that itself is not a problem.

But i want to do something like this: http://pra开发者_高级运维zjain.wordpress.com/2009/11/13/programmatically-add-splist-as-webpart-on-spweb-using-listviewwebpart/

problem is, it doesnt seem to work when the list is not on my current SPSite... Is there an alternative besides ListViewWebPart to show the SPlistItems from a different SPSite?


Cross site-collection list display is not supported OOTB by SharePoint. There are workarounds with SharePoint Designer, web services, iframes, etc. But these are all hacks in my opinion.

I suggest to write a custom web part and display the data in a SPGridView.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号