Developing Delegate Controls
Delegate controls provide a superior way of control replacement or substitution based on ControlID and a Sequence number. By using delegate controls, you can replace existing controls on a page with your own controls without customizing or modifying the page markup code. The delegate controls are enclosed in SharePoint:DelegateControl
tag. If you examine the contents of the v4.master page (out of the box SharePoint 2010 master page) and search for this tag, you would notice that controls such as Top Navigation’s Data Source, Search box, and so on are delegate controls, which means that you can easily replace them with your own custom controls.
For example, let’s replace the links on the top navigation panel based ...
Get Sams Teach Yourself SharePoint® 2010 Development in 24 Hours now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.