O'Reilly logo

Microsoft® SharePoint® Designer 2010 Unleashed by Kathy Hughes

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 Script and CSS to Page Layouts

If you want to add custom script, such as JavaScript or jQuery, or CSS to a custom page layout then you should place any script or CSS within the PlaceHolderAdditionalPageHead content placeholder. Placing script outside of this content placeholder might result in a server-side scripting error when you attempt to view the page in the Web interface. For example, referencing a jQuery script (either as a link to a source file or as embedded script) in the PlaceHolderAdditionalPageHead content placeholder resembles the following:

<asp:Content ContentPlaceholderID="PlaceHolderAdditionalPageHead" runat="server"><scriptType="text/javascript" Src="/jQuery/jquery-1.4.min.js"></script><script type="text/javascript"> ...

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