Exercise: CSS and master pages in ASP.NET 4.0

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

The answer to the exercise will be included and explained if you attend the Wise Owl course listed below!

Category ==> ASP.NET webforms - C#  (25 exercises)
Topic ==> Master pages  (2 exercises)
Level ==> Average difficulty
Course ==> ASP.NET webforms - C#
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Your task for this exercise is to create the following 3-page website:

ASP.NET 4.0 - C# exercise - Master pages (image 1)

The 3 pages of your website

Here are some thoughts to get you started:

  • The first thing to do is to create a new website!
  • Within this, create a master page.
  • Create a style sheet and link to it from the master page.
  • Within this, create a style for the BODY tag of any page.

Your BODY tag could look like this:

ASP.NET 4.0 - C# exercise - Master pages (image 2)

This will give every page a black background

See how little formatting you can use within your ASPX pages (ie see how much you can apply through tag, id and class styles).

This page has 0 threads Add post