© Robert E. Beasley 2020
R. E. BeasleyEssential ASP.NET Web Forms Developmenthttps://doi.org/10.1007/978-1-4842-5784-5_17

17. Master Pages

Robert E. Beasley1 
(1)
Franklin, IN, USA
 

17.1 Introduction

A master page is a template that contains page elements (e.g., text, HTML, ASP.NET server controls) and a content placeholder that reserves space for its associated content pages . Every page element that is placed in a master page (outside of the content placeholder) is displayed on every content page associated with the master page. Thus, when a master page is employed, the master page itself remains consistent from one content page to the next. The only thing that changes is what is displayed in the content pages.

Master pages are useful because they ...

Get Essential ASP.NET Web Forms Development: Full Stack Programming with C#, SQL, Ajax, and JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.