Creating Master Page (Nested Master Page) in ASP.NET Part 3

Introduction If we are building a large website, we might need to create multiple levels of Master Pages. For example, we might want to create a single site-wide Master Page that applies to all the content pages in our website. In addition, we might need to create multiple section-wide Master Pages that apply to only the pages contained in a particular section. Remember, we can not work with nested Master Pages in Visual Web Developer or Visual Studio 2005 or earlier while in Design view. If we need to nest Master Pages, then we need to stick to Source view. We can nest Master Pages as many levels as we need. For example the code given below contains a Master Page named Site_Main.master, which displays a logo image and contains a single content area. It also contains site-wide navigation links. <% @ Master Language ="VB" CodeFile ="Site_Main.master.vb" Inherits ="MasterPage" %> <! DOCTYPE html PUBLIC "-//W3C//DTD XHTM...