Tell me more ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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!

share|improve this question

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.