- Introduction
- Creating an HTML Page
- Opening Web Pages from Within a Web
- Navigating Web Pages
- Displaying Web Pages in the HTML Format
- Managing Web Pages
- Setting the Home Page
- Changing the Web Page Title
- Changing Web Page Properties
- Inserting Background Pictures and Watermarks
- Changing Background Colors
- Adding Background Sound
- Setting Page Size
- Previewing Web Pages in Snapshot
- Previewing Web Pages in a Browser
- Displaying Web Pages in SuperPreview
- Printing Web Pages
- Creating a Page Template
- Using a Dynamic Page Template
- Creating a Master and Content Page
- Saving a Web Page with Different Formats
- Expression Web Formats
- Animating Page Transitions
Creating a Master and Content Page
A Master page is a special type of ASP.NET page that allows you to share contents, such as graphics, HTML code, and ASP.NET controls, between pages. Master pages are similar to Dynamic Web Templates because they share elements between pages. However, Master pages add the ability to share code. If you have ASP.NET 2.0 available on your Web server, you can take advantage of Master pages. A Master page uses content controls instead of editable regions in a Dynamic Web Template. The content control on the Master page (ContentPlace Holder) maps to the content control on the Content page (Content). After you create a Master page using a template in the New dialog box, you need to save it with the .master file extension. Now, you can create a Content page and link it to a Master page.
Create a Master Web Page
- Click the File menu, point to New, and then click Page.
- In the left pane, click General or ASP.NET.
- Click Master Page.
- Click OK.
An Untitled_1.master page appears in the Editing window.
- Click the File menu, and then click Save As.
- Type a name for the master page.
- Click the Save as type list arrow, and then click Master Page (*.master).
- Click Save.
Create a Content Web Page
- Click the File menu, point to New, and then click Page.
- In the left pane, click General or ASP.NET.
- Click Create from Master Page.
- Click OK.
- Click the Specific Master Page option.
- Click Browse, locate and select the master page, and then click Open.
- Click OK.
An Untitled_1.aspx content page appears in the Editing window.
The Content page pulls in the content from the Master page in the ControlPlaceHolder control.
- Click the File menu, and then click Save As.
- Type a name for the content page.
- Click the Save as type list arrow, and then click Web Pages.
In this case, the content page is saved with the .aspx extension.
- Click Save.