C# SharePoint提供程序托管的应用程序链接到服务器端部件
我正在为SharePoint创建提供商托管的应用程序 该应用程序以sharepoint的联机部分开始。但我已经制作了一个自定义功能区按钮,并希望为应用程序的服务器端部分链接到我的azure托管网站。直接链接不起作用,但是否有其他方法链接到应用程序的服务器端部分C# SharePoint提供程序托管的应用程序链接到服务器端部件,c#,visual-studio,sharepoint,sharepoint-2013,C#,Visual Studio,Sharepoint,Sharepoint 2013,我正在为SharePoint创建提供商托管的应用程序 该应用程序以sharepoint的联机部分开始。但我已经制作了一个自定义功能区按钮,并希望为应用程序的服务器端部分链接到我的azure托管网站。直接链接不起作用,但是否有其他方法链接到应用程序的服务器端部分 <CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest" CommandAction="http://
<CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest"
CommandAction="http://xxxxx.azurewebsites.net/CustomActionTarget.aspx?SPListItemId={SelectedItemId}&SPListId={SelectedListId}"/>
我像上面的代码一样链接,但它不起作用
有什么建议吗?试试这个
<CommandUIHandler Command="Invoke_RibbonCustomAction1ButtonRequest"
CommandAction="javascript:
function openNewPage()
{
var url = 'http://xxxxx.azurewebsites.net/CustomActionTarget.aspx?SPListItemId= {SelectedItemId}&SPListId={SelectedListId}';
window.open(url);
}
openNewPage();
"/>
请参见这就是我得到的=>您没有查看此目录或页面的权限。您可以直接浏览url吗?如果您从浏览器导航到链接,会附加什么?我无法直接浏览。使用提供商应用程序是否可以浏览到外部页面以执行服务器端编码检查我是否这样做了。我不能从Sharepoint online部件链接到服务器端代码吗?