.NET
  Home arrow .NET arrow Page 4 - 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  
Visual Basic.NET  
Windows Scripting  
Windows Security  
XML  
ASP Web Hosting  
ASP.NET Web Hosting 
Mobile Linux 
App Generation ROI 
Windows Web Hosting
 
IBM® developerWorks 
Sun Developer Network 
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 / 28
    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 - Step 3: Create a web page which uses the Master


    (Page 4 of 5 )

    If you want to create a page which has the same look and feel as the other pages on the site, you will have to reference the Master. Let us add another aspx page and give it a suitable name. It is called VbDotNet.aspx in this tutorial.

    Add a page directive to reference the Master

    On the source of this page add an additional directive which will point to the Master as shown in the next picture. MasterPageFile is the menu item which can be chosen from the drop-down which appears when you insert a space after VbDotNet" as shown.

     

    The MasterPageFile attribute has a value which also can be accessed from the drop-down when you type a = sign after MasterPageFile and pause for a moment as shown in the next picture. There is only one Master Page that you created in Step 1. This is what you are going to choose by clicking on this item.

    When you click on Tutorial.master a relative path attribute to this file will be added as shown in the next picture.

    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

    - Using CrystalReportViewer to Display Crystal...
    - Creating Summary .Net Crystal Reports
    - More on Commands, Input and the WPF
    - Grouping and Aggregating When Querying LINQ ...
    - Commands, Input and the WPF
    - Keyboard and Ink Input with WPF
    - Mouse Input and the WPF
    - Input with Windows Presentation Foundation
    - Introducing LINQ with XML and Databases
    - An Introduction to LINQ
    - Querying LINQ to SQL: Basics
    - Completing a Simple Storefront with LINQ
    - Knowing Your Environment: the System.Environ...
    - Creating the Home Page for a Simple Storefro...
    - LINQ Quickly with Language Integrated Queries





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
    Stay green...Green IT