本文介绍了将SharePoint搜索页添加到ASP网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用iFrame将SharePoint搜索页面添加到ASP.net网站.它在init.js文件中抛出拒绝访问"错误.请让我知道如何解决.
I am trying to add SharePoint search page to the ASP.net website using iFrame. It is throwing Access Denied error at init.js file. Please let me know how it can be resolved.
推荐答案
请将以下代码添加到SharePoint搜索页或母版页中.
Please add the following code into SharePoint search page or master page.
<WebPartPages:AllowFraming runat="server"/>
或者我们可以在ASP.NET网站解决方案中创建一个网页,并使用SharePoint搜索查询API自定义搜索页面.
Or we can create a web page in ASP.NET web site solution, and customize a search page using SharePoint search Query APIs.
https://dev.office.com/sharepoint /docs/general-development/using-the-sharepoint-search-query-apis
最好的问候,
Dennis
这篇关于将SharePoint搜索页添加到ASP网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!