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 need to add custom search box in SharePoint Foundation 2010. I have to use my own customized search box with nearly 5 to 10 filter options. I heard that search box webpart can't be used in SharePoint Foundation 2010. So i need any alternative for that..

share|improve this question
    
Your question is vague and not really stating exactly what you want. Please read the FAQ to understand how to construct questions. –  Fox Feb 27 '12 at 11:29
    
Now i explained my ques. Please find solution soon.. –  Sanker Feb 27 '12 at 11:35
    
how did you use your own customized search box? Is it just a search web part from server or something you created through visual studio? –  David Lozzi Feb 27 '12 at 15:22
    
Created in visual studio.. –  Sanker Feb 28 '12 at 4:27
add comment

1 Answer

You can replace the default searchbox by registering a delegate control on the SmallSearchInputBox.

<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
 <Control
  Id="SmallSearchInputBox"
  Sequence="10"
  ControlClass="Suren.CustomSearchBox" 
  ControlAssembly="Suren.Assemby, etcetc">
  <Property Name="SurensProp">someValue</Property>
 </Control> 
</Elements>
share|improve this answer
add comment

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.