BeanSoftware Logo

ASP.NET Database Search Control

    Write For Us

What Are Master Pages?

Master Pages in ASP.NET are one more way to provide consistent look of your web site. In content page you define only content that is specific to that page. In Master page goes all content common for complete site, like menus, header, footer etc.

When web browser requests a web page, server will merge content page and master page and return combined output.

Master Pages have .master extension and must have Master directive, like this:

[ C# ]

<%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %>

[ VB.NET ]

<%@ Master Language="VB" AutoEventWireup="true" CodeFile="MasterPage.master.vb" Inherits="MasterPage" %>

Related articles:

1. Developing a picture album in ASP.NET
2. How To Read And Write A Cookie In ASP.NET

FAQ toolbar: Submit FAQ  |  Tell A Friend  |  Add to favorites  |  Feedback

Copyright © 2002-2008 Bean Software. All rights reserved.