简体   繁体   中英

Show contents from sharepoint list within a grid on ASPX page (ASP.NET site)

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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM