Creating and Modifying Web Pages in Microsoft Office SharePoint Designer 2007
- 1/9/2008
Attaching a Master Page
In the previous exercises, you created an ASP.NET page and added Web Part zones and Web Parts to it, but it did not contain any SharePoint site navigation nor did it inherit any look and feel from the SharePoint site. You can envisage the page we created as just the content page. It is not associated with a master page, which is the page that defines the common user interface and code.
In this exercise, you will attach a master page to an existing page.
-
On the Format menu, point to Master Page, and then click Attach Master Page.
The Select A Master Page dialog box opens.
-
In the Select a Master Page dialog box, click Default Master Page (~masterurl/default.master).
-
Click OK to open the Match Content Regions dialog box.
-
Click OK to accept the default of associating all the code within the HTML body tags of the current page, ParcelDelivery.aspx, to the content region, PlaceHolderMain on the master page.
SharePoint Designer redisplays ParcelDelivery.aspx, which now has a SharePoint look and feel.
-
On the Common toolbar, click the Save button and then press to review the page in the browser.
Save