Question

Scenario : There is an ASP.NET site and the server also has sharepoint 2010 foundation. It has couple of lists. Within the ASP.NET site one of the ASPX page has a link. Upon clicking on this link I should read from sharepoint list and display the contents in a grid format within ASPX page.

Columns of grid will be something like ItemID, ItemImage, ItemHyperlink, ItemDescription.

Can anyone suggest any code samples or code?

thanks.

Était-ce utile?

La solution

You can use The Open Data Protocol or OData to retrieve data from your SharePoint. OData is a Web Protocol created on top of Web technologies incluiding XML,Atom,JSON. So you can retrieve the information from your SharePoint using OData in form of Atom entries. You can take a look at the following ling from msdn blog.

http://blogs.msdn.com/b/astoriateam/archive/2009/10/21/using-data-services-over-sharepoint-2010-part-1-getting-started.aspx

Hope this helps.

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top