Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add a search control to an ASPX page

Status
Not open for further replies.

TheJon

Programmer
Mar 11, 2002
71
GB
WSS3.0 - Want to add a search control to the main body of a page in addition to the search control in the default master. Don't seem to be able to copy the <SharePoint:DelegateControl runat="server" ControlId="SmallSearchInputBox"/> code into any zones on the main page. Can't find the control in the toolbox in sharepoint designer.

Any ideas?

Jon


[tt]|_ |_ _ | _ _
|, | )(/, |(_)| )
'[/tt]
 
This is quite a quiet forum...

Found it. Build a query string to pass the search term from a form field to the /_layouts/searchresults.aspx page.

Code:
 /_layouts/searchresults.aspx?k=sandwich%20cheese

where k = the search term and optionally u = the list or library to be searched.

Simple really.


[tt]|_ |_ _ | _ _
|, | )(/, |(_)| )
'[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top