SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

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 want to build a filer (search) user interface for search results page. Thus a have a few Managed Properties I want users to search by. For example, I have a department property (sting) and I want to have a drop down with all department names. How can I get these values to display in my UI using C# code?

share|improve this question

You could probably do this without C#. The Refinements Web Part will display the Managed Properties in results, and you can use an XSLT transformation against this to show the properties in a dropdown.

share|improve this answer
Thanks, for the reply, I want to know about C# way cause in the filter web part there will be other controls like text boxes for querying other managed properties like keyword itself and so on. Also there should be a date range selection. Something like advanced search but designed for specific options only. – Yuri Leontyev May 16 '12 at 10:24

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.