Delegate Controls are useful if you want to customize the functionality of SharePoint Site Controls without editing or even touching the Master Page
SP 2010 V4.master Delegate Controls
1. AdditionalPageHead
2. GlobalNavigation
3. GlobalSiteLink04. GlobalSiteLink2
5. QuickLaunchDataSource
6. SmallSearchInputBox
7. TopNavigationDataSource
8. PublishingConsole
9. TreeViewAndDataSource
10. GlobalSiteLink3
SP 2010 nightandday.master Delegate Controls
1. PublishingConsole
2. TreeViewAndDataSource
3. GlobalSiteLink0
4. GlobalSiteLink2
5. GlobalSiteLink3-mini
6. AdditionalPageHead
7. SmallSearchInputBox
SP 2010 minimal.master Delegate controls
1. MinimalMasterSiteLogo
SP 2010 Default.master Delegate controls
1. AdditionalPageHead
2. GlobalSiteLink0
3. GlobalSiteLink1
4. GlobalSiteLink2
5. SmallSearchInputBox
6. TopNavigationDataSource
7. PublishingConsole
8. QuickLaunchDataSource
9. TreeViewAndDataSource
you can also create your own delegate control or replace your control with out of the box control
Replacing Out of the Box control with your own control is quite easy.To replace the SmallSearchInputBox control with your own control follow the below steps
Step 1. Add One User Control with the name SearchBox. it will automatically add ControlTemplates Folder
Step 2. Add one Empty Element to define Element.xml for Feature
Step 4. Modify the Element.xml file. Here control id should be same as the SmallSearchInputBox otherwise substitution will not happen. sequence no should be less than 100 because by default out of box sequence no is 100.ControlSrc is the location of your user control in the 14 hive folder
Now deploy your code.you will see your control in place of the Default control




No comments:
Post a Comment