Datasheet
To get started, create a new Web project and delete the Default.aspx page that is automatically created.
We’ll re-create
Default.aspx later as a content page that uses a Master Page we’re about to create.
1. To create a Master Page, right-click on the Web project in Solution Explorer, select Add New
Item, select Master Page, give it the name Company.master, and click the OK button. This cre-
ates a new Master Page.
2. If the Master Page is in HTML view, change it to Design view by clicking the Design button at
the bottom left corner of the editor. Add a new table to Company.master by selecting
Layout➪Insert Table.
3. On the Insert Table dialog, choose Template and then pick Header, footer, and side from the
drop-down list, as shown in Figure 1-9.
Figure 1-9
4. Once the table has been added to the page, select the cell in the top table row and type My
Company Header, select the first cell in the second table row and type Menu Goes Here, and
select the cell in the third (last) row and type Copyright (C) 2006 My Company, All Rights
Reserved.
5. When a Master Page is first created, it has a ContentPlaceHolder control added to it automati-
cally. Company.master has this also. Drag and drop the ContentPlaceHolder control to the sec-
ond cell of the second row in the table that you just inserted into the Company.master Master
Page. The results should look similar to Figure 1-10.
11
Hacks Revisited
04_597663 ch01.qxp 4/25/06 9:54 PM Page 11