|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Delegate controls provide a means to specify candidate controls for a particular functionality and to choose a functionality provider for those controls.
The following example specifies a control and tool tips to implement for the input box of the search area in SharePoint pages.
<?xml version="1.0" encoding="utf-8" ?> <Elements xmlns="http://schemas.microsoft.com/sharepoint/"> <Control Id="SmallSearchInputBox" Sequence="100" ControlSrc="~/_controltemplates/searcharea.ascx"> <Property Name="SearchTextToolTip">Search this site</Property> <Property Name="SearchImageToolTip">Go</Property> </Control> </Elements>