Creating Master Pages in ASP.NET . Download pdf E-book

Rohit | Views: 1906

Creating Master Pages in ASP.NET This E-book is about Master Pages and starts with master page basics. We will discuss how master pages work; creating a master page in steps and associated content pages using Visual Web Developer, and see how changes to a master page are immediately reflected in its content pages. This tutorial is geared to be concise and provide step-by-step instructions with plenty of screen shots to walk you through the process visually. It’s available in C# and Visual Basic versions and includes a download of the complete code used.


Content overview of e-book:

Master Page: a master page is a special type of ASP.NET page that defines the markup that is common among all content pages as well as regions that are customizable on a content page-by-content page basis. (A content page is an ASP.NET page that is bound to the master page.) Whenever a master page's layout or formatting is changed, all of its content pages' output is likewise immediately updated, which makes applying site-wide appearance changes as easy as updating and deploying a single file (namely, the master page).

This is the tutorial that explore using master pages. Over this tutorial we:

  • Examine creating master pages and their associated content pages,

  • Discuss a variety of tips, tricks, and traps,

  • Identify common master page pitfalls and explore workarounds,

  • See how to access the master page from a content page and vice-a-versa,

  • Learn how to specify a content page's master page at runtime,

  • and Other advanced master page topics.


  • Understanding How Master Pages Work: Master Pages enable ASP.NET developers to design a consistent site-wide layout that is easily updateable. Creating master pages and their associated content pages is as simple as creating standard ASP.NET pages, as Visual Web Developer offers rich design-time support.


    Step 1: Creating a Master Page

    1) Creating a Simple Site Layout

    2) Creating a Master Page Using an Existing Design Template


    Step 2: Creating Associated Content Pages

    1) Adding Markup and Web Controls to the Content Page

    2) Binding a Master Page to an Existing ASP.NET Page


    Step 3: Updating the Master Page's Markup

    Summary

    Tags:  ASP.NET Interview  ASP.NET Master Pages

     
    Register or Login to Post Your Comment/Opinion