Click here to Skip to main content
15,885,141 members
Articles / Web Development / ASP.NET

ASP.NET 2.0 Master Pages

Rate me:
Please Sign up or sign in to vote.
4.22/5 (50 votes)
28 May 20059 min read 422.7K   7K   66  
Master Pages is a great addition to ASP.NET 2.0. It's so important for templatizing your website, you will learn how to create master pages and content pages, with one simple example and some useful tips.
<%@ Page Language="C#" MasterPageFile="~/MainLayOut.master" AutoEventWireup="true" CodeFile="myContentPage.aspx.cs" Inherits="myContentPage" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
</asp:Content>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Architect
United Arab Emirates United Arab Emirates
Kareem Shaker is a .NET Architect , He's been working with VC++ and VB since version 4.0 ; Kareem has been working on design and development of many business applications , And he's now spending most of his time working with .NET Framework 1.x and 2.0 using both VB.NET and C# , Kareem has been giving some technical sessions targeted to .NET technologies, One of the technolgoies that I have passion to is EAI, I spend most of my times working on BizTalk Server 2006, I like to share knowledge and to interact with geeks around, Blogging is one of my hobbies, my blog is http://CairoCafe.Blogspot.com

Comments and Discussions