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

This might be a bad idea, but that's no important right now. I'm determined to find an answer to the following:

I'm looking to create a custom search results page (based on osssearchresults.aspx) that shows the refinements panel if the search was done from a particular part of my site.

To elaborate: I have a SmallSearchInputBox in my master page, which is used for ALL pages in my publishing sitecollection. One site within that collection is our "support site", and documents there are being created using metadata. Marketing pages are not.

When someone enters a search term into the SmallSearchInputBox and submits it, I want to be able to determine where that submission was made (from a page within the support site or the marketing site?) and show the refinements page accordingly.

This could, potentially, be a simple C# issue, but I've tried the usual suspects (Request.UrlReferrer, Request.ServerVariables["HTTP_REFERER"], etc.) with no luck. It seems that the page you see after a form submissions (in my case results.aspx) cannot use these methods.

Any ideas?


share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.