开发者

SharePoint Master Page modified SPSWC:SearchBoxEx not working correctly on each site

开发者 https://www.devze.com 2022-12-16 12:10 出处:网络
I have created a custom master page and have the follwoing code on the page: <asp:ContentPlaceHolder id=\"PlaceHolderSearchArea\" runat=\"server\">

I have created a custom master page and have the follwoing code on the page:

<asp:ContentPlaceHolder id="PlaceHolderSearchArea" runat="server">
                            <SPSWC:SearchBoxEx id="SearchBox" 
                                RegisterStyle开发者_如何学Gos="false" 
                                TextBeforeDropDown="" 
                                TextBeforeTextBox="Search" 
                                TextBoxWidth="120" 
                                GoImageUrl="/_layouts/images/gosearch.png"
                                GoImageUrlRTL="/_layouts/images/gosearch.png" 
                                UseSiteDefaults="true" 
                                DropDownMode = "HideScopeDD" 
                                SuppressWebPartChrome="true" 
                                runat="server" 
                                WebPart="true" 
                                __WebPartId="{07E563F9-A259-4829-920F-03829BBC14D1}"
                                GoImageActiveUrl="/_layouts/images/gosearch.png" 
                                GoImageActiveUrlRTL="/_layouts/images/gosearch.png"/>    

</asp:ContentPlaceHolder>

On one site this code works correctly and on another it does not work and the default search box apears. I can not work out why this is happening. Any ideas?


The content in the contentplaceholder "PlaceHolderSearchArea" can be overwritten by a <asp:Content /> element in a page layout. So check the page layouts you are using for the existance of an <asp:Content/> with the placeholder id "PlaceHolderSearchArea".

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号