09 Jun 2009
24 Dec 2009
Link to this post
I made a customized search box template SearchBoxModified.ascx. I copied SearchBox.ascx and made changes on it. I added several checkboxes and a new 'search' button, and in the button's onclick event, I created a URL based on which checkbox(es) are selected and redirect the page. I made the original 'search' button invisible.
Now I got an issue: when user press enter in this page, it doesn't trigger my new search onclick event, it goes to default search results page by passing only the search term in querystring. I tried to add a panel and set the 'defaultbutton' property, but no luck.
Do you have any solutions for this issue?