ASP.NET Basics

HTML Basics
ASP.NET Web Server
Advanced HTML
Application Designing
Using Visual Studio
ASP.NET Standards
ASP.NET Styling
ASP.NET Navigation

ASP.NET Tips

ASP.NET Validation
HTML forms
CSS Styling
CSS Advanced
ASP.NET Features
ASP.NET Image Effects
Common mistakes
DB Design tips

Building Applications

Design Secure Apps
Build Secure Apps

3.2 Connecting Styled Master Page to Regular Page

« Previous Chapter

Next Chapter »

After you have created a styled Master Page according to your needs, now you need to connect this Master Page to a Regular .aspx page so it inherits the Master Pages styles.

When adding an ASP.NET page to your project, if you notice, the IDE gives you an option to choose its Master Page. The following are the steps on how to select a Master Page.

  1. Choose File - -> New File - -> Web Form.
  2. Check the Select Master check box in the lower area of the Add New Item dialog box.

Add New Item – Select Master Page
Add New Item – Select Master Page

  1. Click on Add button
  2. Select the Master Page and then Click OK.

Select MasterPage.master
Select MasterPage.master

« Previous Chapter

Next Chapter »

Table of Contents

Chapter 1 - Placing Style Rules
        Chapter 1.1 - Visual Studio Auto Format
        Chapter 1.2 - Inline/Hardcoding Styles
        Chapter 1.3 - Local Style Tag
        Chapter 1.4 - ASP.NET External CSS
Chapter 2 - Visual Studio Style Sheets Tools
        Chapter 2.1 - Using ASP.NET External CSS
        Chapter 2.2 - Generated Styles
Chapter 3 - Styling with Master Pages
        Chapter 3.1 - Creating Styled ASP.NET Master Page
        Chapter 3.2 - Connecting Styled ASP.NET Master Page to Regular Page
Chapter 4 - ASP.NET Themes and Skins
        Chapter 4.1 - Creating an ASP.NET Theme
        Chapter 4.2 - Applying Theme to a Web Site
        Chapter 4.3 - Applying Theme to a Page

[top]