Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am new to SharePoint and I am customizing the search control, I replaced the search DelegateControl with the following as some article suggests,

<SPSWC:SearchBoxEx webpart="true" runat="server" CssClass="searchInput" SearchResultPageUrl="/Pages/SearchResults.aspx" __WebPartId="{344821C7-B621-4B99-AC49-A82C9B00356E}">
            <WebPart xmlns="http://schemas.microsoft.com/WebPart/v2">
            <Title></Title>
            <Description></Description>
            <FrameType>None</FrameType>
            <AllowMinimize>true</AllowMinimize>
            <AllowRemove>true</AllowRemove>
            <IsVisible>true</IsVisible>
            <GoImageUrl xmlns="urn:schemas-microsoft-com:SearchBoxEx">
            /Resources/Common/Images/searchButton.png</GoImageUrl>
            <GoImageActiveUrl xmlns="urn:schemas-microsoft-com:SearchBoxEx">
            /Resources/Common/Images/searchButton.png</GoImageActiveUrl>
            <GoImageUrlRTL xmlns="urn:schemas-microsoft-com:SearchBoxEx">
            /Resources/Common/Images/searchButton.png</GoImageUrlRTL>
            <GoImageActiveUrlRTL xmlns="urn:schemas-microsoft-com:SearchBoxEx">
            /Resources/Common/Images/searchButton.png</GoImageActiveUrlRTL>
            <DropDownModeEx xmlns="urn:schemas-microsoft-com:SearchBoxEx">
            HideScopeDD_DefaultContextual</DropDownModeEx>
            <ID>g_344821c7_b621_4b99_ac49_a82c9b00356e</ID>
            </WebPart>
        </SPSWC:SearchBoxEx>

I also added the the following Register directive to the top of the page,

<%@ Register tagprefix="SPSWC" namespace="Microsoft.SharePoint.Portal.WebControls" assembly="Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

Now when I set the TextBoxWidth property on the SearchBoxEx the whole page crashes and never works again even if I remove the property until I undo check out the changes made to the page, so any idea about this problem?

Thanks in advance.

share|improve this question
    
exceptions and logs please (<sharepointroot>\logs) –  Anders Rask Jun 11 '11 at 16:20
1  
Well I figured it out, the exception says "Some value" can't be value of "DropDownModeEx", and in the end it sounded to be sharepoint designer problem or system problem I just restarted the system and reapplied the same thing and it worked like magic. –  A_Nablsi Jun 12 '11 at 15:58
1  
Ok please add that as answer to this question then. After a couple of days you can set as answer and get the rep. –  Anders Rask Jun 13 '11 at 20:57
add comment

1 Answer

up vote 0 down vote accepted

As mentioned in the comments all that was required was to reboot the system

Well I figured it out, the exception says "Some value" can't be value of "DropDownModeEx", and in the end it sounded to be sharepoint designer problem or system problem I just restarted the system and reapplied the same thing and it worked like magic

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.