.NET
  Home arrow .NET arrow Building an ASP.NET 2.0 Master Page in Thr...
ASP Free Forums 
.NET  
ASP  
ASP Code  
ASP.NET  
ASP.NET Code  
BrainDump  
C#  
Code Examples  
Database  
Database Code  
IIS  
Microsoft Access  
MS SQL Server  
Silverlight  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
ASP Web Hosting  
ASP.NET Web Hosting 
Windows Web Hosting
 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
.NET

Building an ASP.NET 2.0 Master Page in Three Steps
By: Jayaram Krishnaswamy
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 32
    2006-11-20

    Table of Contents:
  • Building an ASP.NET 2.0 Master Page in Three Steps
  • Step 1: Adding a Master.master page to your site
  • Step 2: Adding some features to the Master
  • Step 3: Create a web page which uses the Master
  • Adding an asp:content/ control to the page

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    Building an ASP.NET 2.0 Master Page in Three Steps


    (Page 1 of 5 )

    This tutorial is about a great new feature in ASP.NET 2.0 called the Master Page. If you wish to have a web site with a user-friendly, consistent look and feel throughout your web pages which is easy to maintain and rapid to develop then this is what you should look into.

    Introduction

    The motivation to create a common look and feel for all the web pages at a site which evolved over a period of time at Microsoft has culminated in this embodiment called a Master Page. This supersedes the previous Microsoft developed strategies such as serve side includes, user controls in VS2003, etc. During the heydays of ASP, include pages delivered similar functionality but were difficult to maintain for larger sites.

    A Master Page establishes a common look and feel for all your web pages by providing a template with an editable place holder. The content for the place holder comes from your web page. The concept is really very simple as shown in the next picture. In the website, consider the two files you will be creating, one a Master.master page and another called the myPage.aspx. Master has only the Header and the Footer with an embedded contentplaceholder with HTML markup. The myPage.aspx has just one ASP content placeholder control devoid of any other HTML markup.

    However when the user browses to the myPage.aspx, he will see only the myPage.aspx rendered on the browser as shown.

    More .NET Articles
    More By Jayaram Krishnaswamy


       · User experience is one of the most important aspects of web design. The look and...
       · Very nice, easy to understand .NET article.I remember my co-worker advocating...
       · Things are evolving and a open revolution is taking place in the Open Source area....
     

    .NET ARTICLES

    - Building Applications with Windows Workflow ...
    - Building the Data and Business Layers Using ...
    - The Transformed XML Explorer in MFC
    - List Control and Property Grid with the MFC ...
    - Font, Shell and Masked Edit Controls for MFC
    - Color, Link and Image Editor Controls for M...
    - New Controls for MFC
    - The Windows Ribbon Framework
    - Markup Language for the Ribbon Framework
    - Visually Upgrade Your MFC Project
    - New Features for the Statusbar in MFC
    - Working with the Statusbar in MFC
    - Iron Speed Design v60 Review
    - Binary and XML Serialization
    - Using CrystalReportViewer to Display Crystal...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek