Skip to content

Latest commit

 

History

History
46 lines (34 loc) · 1.6 KB

delegate-controls.md

File metadata and controls

46 lines (34 loc) · 1.6 KB
title description manager ms.date ms.audience ms.topic ms.localizationpriority ms.assetid
Delegate Controls
Delegate controls provide a means to specify candidate controls for a particular functionality and to choose a functionality provider for those controls.
soliver
06/10/2022
Developer
reference
medium
f07f0d06-2d14-4c6d-bb87-b44ec98b50e6

Delegate Controls

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Delegate controls provide a means to specify candidate controls for a particular functionality and to choose a functionality provider for those controls.

Example

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>

See also