简体   繁体   English

在ASPX页(ASP.NET站点)的网格中显示共享点列表中的内容

[英]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. 方案:有一个ASP.NET站点,该服务器还具有sharepoint 2010基础。 It has couple of lists. 它有几个列表。 Within the ASP.NET site one of the ASPX page has a link. 在ASP.NET站点内,ASPX页面之一具有链接。 Upon clicking on this link I should read from sharepoint list and display the contents in a grid format within ASPX page. 单击此链接后,我应该阅读共享点列表,并在ASPX页面中以网格格式显示内容。

Columns of grid will be something like ItemID, ItemImage, ItemHyperlink, ItemDescription. 网格的列将类似于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从SharePoint中检索数据。 OData is a Web Protocol created on top of Web technologies incluiding XML,Atom,JSON. OData是基于Web技术(包括XML,Atom,JSON)创建的Web协议。 So you can retrieve the information from your SharePoint using OData in form of Atom entries. 因此,您可以使用Atom条目形式的OData从SharePoint中检索信息。 You can take a look at the following ling from msdn blog. 您可以在msdn博客中查看以下内容。

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

Hope this helps. 希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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