Creating Master Pages with Visual Web Developer

We must select the Master Page that applies to our Content Page.

Figure 10
Master Page

Below is how our Content Page looks in design view. The content area is where you can place any text, HTML or controls that are unique to this particular page.

Figure 11
Master Page

In code view this is how our page looks. Notice the directive 'MasterPageFile="~MasterPage.master". This informs the ASP.NET engine to use the MasterPage.master template.

Figure 12
Master Page

The ASP.NET engine will merge both the Master Page and Content Page and display a single page i.e. 'page1.aspx'.

Creating Master Pages with Visual Web Developer Part 2 <<

Creating Master Pages with Visual Web Developer Part 1 <<

Learn how to create an example website with Master Pages using Visual Web Developer

Get the best asp hosting provider from web-hosting-top.com and save up to 30%

Advertisements



MembersPro

MembersPro PayPal - ASP Membership software

Plug and play ASP membership script that integrates with PayPal to let you charge recurring membership fees.

Global ASP.NET Hosting Leader - Click Here