Datasheet

Book IX
Chapter 1
Building Master and
Detail Pages
Developing Master and Detail Pages for ASP.NET
703
Figure 1-11 shows the DataGrid object created for the example.
Creating links that open the detail page
After you create the ASP.NET master page (as described in the preceding
section), you need to create links that open the detail page and communi-
cate which record the user selected. To open an ASP.NET detail page and
display the specified record, follow these steps:
1. Open the master page in the Document window.
2. In the Server Behaviors panel, double-click DataGrid.
The DataGrid dialog box appears.
3. In the Columns list, select the column that you want to serve as the
link to the detail page.
You can use any field that identifies the record for expanding the detail
of the record.
4. Click the Change Column Type button.
5. Select Hyperlink from the pop-up menu.
The Hyperlink Column dialog box appears.
6. In the Hyperlink Text section, specify the text that you want to dis-
play in the hyperlink column.
Figure 1-11:
The
Document
window
with the
DataGrid
object.
52_781428 bk09ch01.qxp 6/19/06 11:46 AM Page 703