Microsoft Visual Studio
Master Pages exercise
Relatively easy

This Microsoft Visual Studio MASTER PAGES exercise is provided to allow potential course delegates to assess their suitability for the Wise Owl ASP.NET 2.0 USING C# course only, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Exercise: Master pages - simple web site for Doctor Who

A full answer to this exercise is provided as part of the training course!

1) Download the files needed to start this exercise: exercise-782.zip
2) You are about to build your own Doctor Who web site, to look like this:
Exercise screen-shot 1633 The home page - from this you can go to either of two subpages
3) The thoughts page might look like this:
Exercise screen-shot 1634 The top, left, bottom and right of the page are part of the same master
4) To create all of this, here is a suggested way forward:
  • Create a new web site, and import into it the pictures from the folder above
  • Create a style sheet which sets the background colour for your web site (the font used above is Gill Sans MT Condensed, but you should choose your own)
  • Create a master page with the banner at the top and a two-cell table in the middle, and put the Doctor Who banner at the top and the dalek in the left-hand cell
  • Apply your style sheet to the master page
  • Create 3 pages - a home page, thoughts page and photos page - all based on your master
5) If you finish early and have the time and energy, add a title to the master page and see if you can create a property on the other pages which changes it.  The declaration line you will need to add will be something like this:
Exercise screen-shot 1635 This line in each web page allows you to change public properties of the master page
6) Save and close any open files.

Thank you for showing an interest in this ASP.NET 2.0 using C# training course! As mentioned above, full answers to this and other exercises are provided on the course. On all Wise Owl scheduled courses delegates can take away these model answers (together with their own efforts!) on a free USB stick.

All content copyright Wise Owl Business Solutions Ltd.  All rights reserved.  Design by Branches.