Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/list/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
List SharePoint-要列出的文档库项_List_Sharepoint_Document_Web Parts_Foundation - Fatal编程技术网

List SharePoint-要列出的文档库项

List SharePoint-要列出的文档库项,list,sharepoint,document,web-parts,foundation,List,Sharepoint,Document,Web Parts,Foundation,最好的方法是什么 我想阅读所有文档库项以列出并创建这些文档的直接链接。还是更容易阅读Web部件的文档,例如Listbox/DataGrid 例如: 文档库 MyDocument.doc MyList 链接到MyDocument.doc文件 很抱歉这个愚蠢的问题,但我尝试创建我的第一个Web部件。 如果你能帮我找到正确的方向。。。谢谢大家! 您应该学习如何从文档库中获取文档(或从列表中获取项目),并且可以获取文档项目的url。因此,您将能够根据需要创建web部件。如果您打算使用服务器代码(

最好的方法是什么

我想阅读所有文档库项以列出并创建这些文档的直接链接。还是更容易阅读Web部件的文档,例如Listbox/DataGrid

例如:

文档库

  • MyDocument.doc
MyList

  • 链接到MyDocument.doc文件
很抱歉这个愚蠢的问题,但我尝试创建我的第一个Web部件。
如果你能帮我找到正确的方向。。。谢谢大家!

您应该学习如何从文档库中获取文档(或从列表中获取项目),并且可以获取文档项目的url。因此,您将能够根据需要创建web部件。如果您打算使用服务器代码(C#),您应该学习使用sharepoint对象模型。否则,将创建sharepoint客户端对象模型。以下是供您参考的链接: