Duration: 20 minutes
Summary: In this video, we are discussing master pages. Master pages serve as a template to other pages within the site. They contain the common content that will be used across all pages. That way, when you are creating pages within your site, you can refer to the master page, and only fill in the missing pieces. The master pages will contain the html, head, and body. The other pages using the master will only contain <asp:content> tags. Within those tags you refer to the id from the mater and you put your information in the content. Using those ids, ASP.NET will use the master page, fill it out with the missing content, and serve the final page to the user. When you need to make a change that affect all pages, you make that change in the master, and all pages will be affected. We did this here by changing the style that the master is using, and we saw how that was changed in all the pages.
Methodology of the development of example: Good coding standard and simplified design to illustrate the key points.
Technology Used: ASP.NET and Visual Studio 2010
Keyword: ASP.NET 4, Visual Studio 2010, Master Pages, Content, ContentPlaceHolder, ContentPlaceHolderId, MasterPageFile.