Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/272.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
C# 自定义操作将文档发送到其他页面_C#_Asp.net_Sharepoint_Sharepoint 2013_Custom Action - Fatal编程技术网

C# 自定义操作将文档发送到其他页面

C# 自定义操作将文档发送到其他页面,c#,asp.net,sharepoint,sharepoint-2013,custom-action,C#,Asp.net,Sharepoint,Sharepoint 2013,Custom Action,我有一个SharePoint 2013提供商托管的应用程序。在应用程序项目中,有一个功能区自定义操作,可导航到web项目中的页面。当按下功能区自定义操作时,所选文档(而不仅仅是属性)应发送到.aspx页面。在.aspx页面上,我想将其保存在数据库中。 如何将整个文档发送到.aspx页面 <CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest" CommandAc

我有一个SharePoint 2013提供商托管的应用程序。在应用程序项目中,有一个功能区自定义操作,可导航到web项目中的页面。当按下功能区自定义操作时,所选文档(而不仅仅是属性)应发送到.aspx页面。在.aspx页面上,我想将其保存在数据库中。 如何将整个文档发送到.aspx页面

<CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest"
                          CommandAction="~remoteAppUrl/Pages/CustomActionTarget.aspx?HostUrl={HostUrl}&amp;Source={Source}&amp;ListURLDir={ListUrlDir}&amp;SelectedListID={SelectedListId}&amp;SelectedItemID={SelectedItemId}"/>
</CommandUIHandlers>
这是我的代码,但正如您所见,这将把属性发送到.aspx页面,我想发送整个文档

通过Source={Source}您可以获得文档的完整url,当您点击它时,您可以下载它。因此,我想您必须在另一个页面上编写代码,从该页面将代码推送到DB,在本地下载代码,然后从该页面将该文件推送到sharepoint DB。 我不能完全回答你的问题,但希望它能给你一些指导