Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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

1 Answer 1

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

 
discard

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.