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