Datasheet
Book IX
Chapter 1
Building Master and
Detail Pages
743
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 display
in the hyperlink column.
Here are your choices:
• Static Text: Use a generic description for this column. Enter text for
the link, such as Details.
• Data Field: Add text for a link based on a hyperlink column. Then
from the drop-down list, select a data field in your dataset. In the
example, we selected the last_name column.
• Format String: This field is generated automatically and displays the
format of the URL text.
7. In the Linked Page section, specify the URL for the hyperlink column
text.
Here are your choices:
• Static Text: Use a generic link for this column. Enter the URL for the
link, such as Details.aspx.
• Data Field: Add a link for data displayed in the hyperlink column.
Then from the drop-down list, select a data field in your dataset. In
the example, we selected the first_name column.
• Format String: This field is generated automatically and displays the
format of the URL link.
The URL opens the detail page and uniquely identifies the record to dis-
play on the detail page.
8. In the Linked Page section, click the Browse button next to the Format
String box.
9. Locate and select which detail page you want to display.
Note the following when selecting your link page:
• When you select a detail page, Dreamweaver adds information to the
URL that specifies a parameter to use to identify the record.
• Dreamweaver automatically names this parameter based on your
database field name, but you can change the name to something else
if you want to.
Developing Master and Detail Pages for ASP.NET
53_610770-bk09ch01.indd 74353_610770-bk09ch01.indd 743 5/6/10 1:20 PM5/6/10 1:20 PM