MOSS中的DelegateControl机制

*:如果id相同,系统默认使用优先级高的控件。由此可以实现使用相同ID,在激活包含优先级高的Control时,自动切换控件。

*:Sequence数值越小,优先级越高。

-----------------------------------------------------
页面控件声明:

<SharePoint:DelegateControl ID="DelegateControl2" runat="server"
 ControlId="InfoWebSmallSearchInputBox" />
-----------------------------------------------------
elements.xml声明:

  <Control
       Id="InfoWebSmallSearchInputBox"
       Sequence="100"
       ControlSrc="~/_controltemplates/Bingo/Lenovo_InfoWeb/InfoWebSearchArea.ascx">
  </Control>

原文地址:https://www.cnblogs.com/kxlf/p/1645049.html