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.
Next: Adding an asp:content/ control to the page >>
More .NET Articles
More By Jayaram Krishnaswamy