开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜