Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 5 of 5

Thread: search.aspx 9.01.2

  1. #1
    brianperry is offline Member
    Join Date
    Sep 2005
    Posts
    41

    Default search.aspx 9.01.2

    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

  2. #2
    kdalal is offline Member
    Join Date
    Aug 2009
    Location
    USA
    Posts
    50

    Default

    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.

  3. #3
    John Reasons is offline Senior Member
    Join Date
    Oct 2009
    Posts
    119

    Default

    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.

  4. #4
    andrewy is offline Junior Member
    Join Date
    May 2011
    Posts
    10

    Default

    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.

  5. #5
    storeguy is offline Junior Member
    Join Date
    Feb 2011
    Posts
    1

    Default

    Adding the CSS below works for me.

    HTML Code:
    .search #ctl00_PageContent_ctrlPageSearch_SearchPanel
    {
        visibility: hidden;
    }