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

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I setup a web parts page in SP2010 with an advanced search web part on it. When the advanced search form is submitted, it sends its parameters to a custom page named results.aspx, where I have web parts to display the search results and other search-related data. That's all working fine.

What I can't get working is showing the user their query on the results page. Ideally I'd like to redisplay the advanced search web part with their search parameters filled in. When I put the advanced search web part on the page, however, it comes up with all the fields empty. Is there a way to auto-populate this web part with the search parameters on the results page? If not, is there any other way to show the user what they searched for?

share|improve this question
up vote 0 down vote accepted

If you posted your query to another page, the query should be in Response.QueryString right? You should be able to fetch it from there

share|improve this answer
Brilliant, thanks! I sometimes forget that SharePoint is also an ASP app :P – stomcavage Mar 1 '11 at 15:26

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.