how can we remove the search box and go button that is in the content section on the search.aspx page? since we have the search box in master page on the top having one in the results is redundant
http://www.supermart.cc/search.aspx
how can we remove the search box and go button that is in the content section on the search.aspx page? since we have the search box in master page on the top having one in the results is redundant
http://www.supermart.cc/search.aspx
I think so check for this line-
<aspdnsf:Search ID="ctrlPageSearch" runat="server" CssClass="search"
SearchButtonCaption="Go"
SearchCaption="<%$ Tokens: StringResource, common.cs.82 %>"
SearchTextMinLength="<%$ Tokens:AppConfigUSInt, MinSearchStringLength %>"
SearchTextMinLengthInvalidErrorMessage="<%$ Tokens: StringResource, search.aspx.2 %>"
ValidateInputLength="true"
/>
That makes the search text box and button.
Check that in your search.aspx and comment it out.
Last edited by kdalal; 04-15-2010 at 11:00 AM.
You need to comment this out in the search.aspx page not the masterpage, so as to remove it from only the search page.
Just comment out this section:
Code:<aspdnsf:Search ID="ctrlPageSearch" runat="server" CssClass="search" SearchButtonCaption="Go" SearchCaption="<%$ Tokens: StringResource, common.cs.82 %>" SearchTextMinLength="<%$ Tokens:AppConfigUSInt, MinSearchStringLength %>" SearchTextMinLengthInvalidErrorMessage="<%$ Tokens: StringResource, search.aspx.2 %>" ValidateInputLength="true" />
Last edited by John Reasons; 04-15-2010 at 11:03 AM.
Commenting out this code affects the site (at least in my experience). It does hide the second search box, but if you try to do a subsequent search, a javascript error prevents all navigation menus from working correctly.
Last edited by andrewy; 09-23-2011 at 12:23 PM.
Adding the CSS below works for me.
HTML Code:.search #ctl00_PageContent_ctrlPageSearch_SearchPanel { visibility: hidden; }