
8
Master Pages
WHAT’S IN THIS CHAPTER?
An overview of how master pages work in ASP.NET
➤
How master pages use content placeholders and controls
➤
How master pages work di erently in SharePoint 2010
➤
How master pages and page layouts work together
➤
How to create both simple and complex custom master pages
➤
How to solve common challenges that occur when creating custom
➤
master pages
In the previous chapter, you learned about how Cascading Style Sheets (CSS) work in SharePoint
2010. Even though CSS is an important concept in styling SharePoint sites, it can affect the over-
all look of a site only so much; CSS can only affect hiding and showing areas of a design, as well
as changing colors and images. To truly make wide-sweeping changes to the user interface of a
SharePoint site, master pages are the only way to go. Master pages are responsible for laying out
the various pieces of functionality that are shown when SharePoint pages are browsed.
In this chapter, you will learn how master pages work in traditional ASP.NET applications
and, more important, how they work in SharePoint 2010. You will also learn how master
pages and page layouts differ, as well as how the various parts of master pages are handled in
a SharePoint site. The chapter concludes with a tutorial on converting a standard HTML and
CSS design into a corresponding master page and CSS.
UNDERSTANDING MASTER PAGES
If you remember ...