Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys,

I want to display sharepoint calender from one sharepoint site to another sharepoint site that exist in another farm.
I have created a custom webpart and trying to add that list as data source but it didn't work.

Can anyone please advise me or share some code for this.

thank you for help.
sandy
Posted
Updated 10-Feb-11 13:00pm
v7
Comments
[no name] 12-Dec-10 21:38pm    
You have to give a little detail as to what you are trying to accomplish. What do you mean display it? Almost everything in SharePoint is based on lists, you just need to get the correct list and query it.
Dalek Dave 9-Feb-11 18:58pm    
Edited for Grammar and Readability.

If you want to get a list in your code this is how you would start. If you tell us more I can explain how to do something with it when you have it. Also what language are you using?

Dim web As SPWeb
Dim list as SPList
web = SPContext.Current.Web 'change this to the web you want
list = web.Lists("xxxxx") 'your list name there
 
Share this answer
 
Comments
aus_sandy 13-Dec-10 17:50pm    
hi..thx for reply..im using c#...i want to get a calendar from some site and dispaly in this sharepoint site..this calendar is there in our intranet site....i wana display same calendar in internet site..in different pages...i also want to put a combo box to filter the event....can anyone give some ideas on this....
thank you
Dalek Dave 9-Feb-11 18:58pm    
Good Call.
Does the calendar exist in SharePoint, or is it an external page?

If the calendar is in SharePoint you should be able to create a view on it through the web interface and then create a webpart to display the different views depending on the value of the combo box.

If it's not in SharePoint you'll need to give us alot more information to help out, you'll probably need to use multiple page viewers.
 
Share this answer
 
Comments
aus_sandy 14-Dec-10 18:14pm    
yes calendar excst in sharepoint...but in different site...im trying to use it on my site...can i bind that list data source..using its id to my calendars....how does this data binding work in spcalendars item.....plz help on it..thank you
Is the calendar a list or a view based on particular list? SharePoint List Sync can enable you to combine different SharePoint lists in one. Then you won’t be bothered to transfer list data source to another any longer.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900