O'Reilly logo

SharePoint 2013 WCM Advanced Cookbook by John Chapman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding JavaScript and stylesheets with an AdditionalPageHead delegate control

The AdditionalPageHead control is one of the most commonly used delegate controls by developers to add custom code to the page. Controls registered to the AdditionalPageHead control are added to the <head> element of each page and multiple controls may be added, unlike most other delegate controls that only allow one user control.

In this recipe, we will create an ASCX user control that will add references to a custom stylesheet and custom JavaScript. We will then register the control to be added to the AdditionalPageHead delegate control. Using an AdditionalPageHead delegate control allows us to add our custom stylesheet and custom JavaScript to every SharePoint page, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required