I have a relatively small SharePoint list. When a user comes to the list page I want a generalized list to display with a search box. I want this list to have no parameters or variables attached to it so that it can be wildcard (*) searched. This way whenever the wildcard is inserted into the search box the default list displays all results.
This page will have a second list view with several parameters and filters already set on it. When someone types the search criteria in the parameters and filters goes to work searching for what the person is looking for.
I have both list views already set up.
How do I set the page (programmably) to toggle between my list views based on the url parameter value.
Example: http://mysite.com/allitems.aspx?search=all default view shows all results.
http://mysite.com/allitems.aspx?product=fruit shows only the product listings that are fruit