I have a custom content query webpart. I know how to change the QueryOverride to alter the results returned, but I want to change the query when a user clicks a button.
The problem is how to keep track of whether or not the button has been clicked. Session Variables? ViewState?
When using a boolean session variable I find I have to click twice before the new query is applied.
Does anyone have any idea how to achieve this functionality (click a button and immediately update the query and display the appropriate results)
Thanks in advance!