Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/search/2.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
默认母版页上的SharePoint搜索_Sharepoint_Search_Master Pages - Fatal编程技术网

默认母版页上的SharePoint搜索

默认母版页上的SharePoint搜索,sharepoint,search,master-pages,Sharepoint,Search,Master Pages,我正在尝试启用默认母版页上的搜索栏。母版页的源代码中包含以下内容: <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server"> <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/> </asp:ContentPlaceHolder> 在设计模式下的页面呈现中,显示[DelegateC

我正在尝试启用默认母版页上的搜索栏。母版页的源代码中包含以下内容:

<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/>
</asp:ContentPlaceHolder>


在设计模式下的页面呈现中,显示[DelegateControl]。当我发布页面时,我没有看到搜索框,我什么也看不到。。。有人可以告诉我如何在默认母版页上启用搜索,谢谢。

您确定MOSS搜索服务配置正确吗

如果没有,请检查这篇文章:

您是否从网站功能中激活了“Office SharePoint Server标准网站集功能”?

我遇到了完全相同的问题,但最终找到了一个非常简单的解决方案。您只需要确保asp:ContentPlaceHolder位于html表单中。我不知道为什么会这样,只是简单地将代码更改为

<form id="Form1" runat="server">
 <asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
  <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/>
 </asp:ContentPlaceHolder>
</form>


当搜索框使用这个简单的母版页工作时,我能够跟踪问题并找到所需的元素。

太棒了,这对我来说很有用!有人应该马上把这是一个正确的解决方案:D