Enter Key to Search Page
Enter Key to Search Page
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?
Re: Enter Key to Search Page
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
Also had to add reference: using System.Web.UI.WebControls;
Code: Select all
protected void Page_Init()
{
Button myDefaultBtn = this.SearchButton;
SearchPanel.DefaultButton = myDefaultBtn.UniqueID;
....