08.08.2017 Views

designer

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

130 Chapter 4 Creating and Modifying Web Pages<br />

Creating an ASP.NET Page<br />

The page you see in your browser when you request a page from a SharePoint site is the<br />

combination of two Microsoft ASP.NET pages: a master page and a content page.<br />

v4.master<br />

Master page<br />

Master page<br />

Content page<br />

<br />

<br />

Home.aspx<br />

Content page<br />

<br />

<br />

A master page is a special ASP.NET 2.0 page that you can use to share code between<br />

pages. It provides a site with a consistent appearance and navigation for each page within<br />

a site. You cannot view a master page in your browser, but you can view and customize<br />

a master page by using SharePoint Designer.<br />

When you open a content page in Design view, the merged view of the two pages is<br />

displayed. In this view, even in advanced edit mode, you can only edit the code that the<br />

content page contains. The no-entry icon is displayed if you point to code that the master<br />

page contains. In Code view for a content page, you see only the code that the content<br />

page contains. An example of a content page is the home page of a team site, which<br />

is named Home.aspx.<br />

When you use a browser to request a page from a SharePoint Server publishing site, it<br />

can be a combination of three ASP.NET pages: a master page, a page layout, and a content<br />

page. (In this scenario, the content page is referred to as a publishing page.) On the<br />

other hand, when you request a page from, say, a team site or a document workspace,<br />

two ASP.NET pages are combined: a master page and a content page. (In this scenario,<br />

the content page is referred to as a nonpublishing page.) You cannot modify a publishing<br />

content page by using SharePoint Designer; you must use the browser. However, you can<br />

modify the master page and page layout by using SharePoint Designer.<br />

See Also Master pages are described in Chapter 11, “Working with Master Pages,” and<br />

customizing publishing pages in Chapter 13, “Managing Web Content in the SharePoint Server<br />

Environment.”

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!