moss2007 新建模板页 搜索框无法使用 SmallSearchInputBox

新建一个模板页,使用搜索功能。

<asp:ContentPlaceHolder ID="searchArea" runat="server">
<SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/>
</asp:ContentPlaceHolder>

无法使用,后来发现需要加入以下代码:

<form runat="server" onsubmit="return _spFormOnSubmitWrapper();">
<WebPartPages:SPWebPartManager id="m" runat="Server"/>

使用正常。

posted @ 2011-03-28 21:39  johLife  阅读(194)  评论(0编辑  收藏  举报