Enter Key to Search Page

For general questions and discussions specific to the AbleCommerce GOLD ASP.Net shopping cart software.
Post Reply
User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Enter Key to Search Page

Post by triplw » Thu Aug 01, 2013 6:44 am

The enter key for site pages are going to the Basket page. So when a customer is using the search box in the header and hits enter instead of the search button they don't go to the search results page. How do I make the search button the default for the page?

User avatar
triplw
Commander (CMDR)
Commander (CMDR)
Posts: 144
Joined: Sat Jan 12, 2008 5:34 pm
Contact:

Re: Enter Key to Search Page

Post by triplw » Thu Aug 01, 2013 8:56 am

Above post isn't really clear. Trying to set the Simple Search Button as the Default Button for the Enter Key. I think I figured it out. In ConLib/Utility/SimpleSearch.ascx

Code: Select all

        protected void Page_Init()
        {
            Button myDefaultBtn = this.SearchButton;
            SearchPanel.DefaultButton = myDefaultBtn.UniqueID;
....
Also had to add reference: using System.Web.UI.WebControls;

Post Reply