0

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..

4
  • Your question is vague and not really stating exactly what you want. Please read the FAQ to understand how to construct questions.
    – Fox
    Commented Feb 27, 2012 at 11:29
  • Now i explained my ques. Please find solution soon..
    – Sanker
    Commented Feb 27, 2012 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? Commented Feb 27, 2012 at 15:22
  • Created in visual studio..
    – Sanker
    Commented Feb 28, 2012 at 4:27

1 Answer 1

3

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>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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