Datasheet
Testing Your Master and Detail Pages
706
so, you need to define a dataset for the record and bind its columns to the
detail page.
When creating the detail page, you need to know the database column name
that you want to reference and the URL parameter that the master page uses
to find and display that column’s record on the detail page. If you don’t
remember the URL parameter name, open the master page, go to the
Bindings panel, and look under the DataSet listing.
To create an ASP.NET detail page, create a new ASP.NET page in Dreamweaver
and follow Steps 2 through 12 in the earlier section, “Building detail pages.”
Note that although the earlier steps show you how to fill out the Recordset
dialog box, the steps are the same for the DataSet dialog box, which you fill
out when creating an ASP.NET detail page.
Testing Your Master and Detail Pages
After you create a master and detail page set, you need to test those pages.
Follow these steps to preview the pages in a browser:
1. Open the master page.
2. Choose File➪Preview in Browser➪Your browser type.
3. When Dreamweaver asks you if it’s okay to copy the file to the testing
site, click OK.
Your browser launches with your master page (see Figure 1-14).
4. Click a hyperlink to view the associated detail page for that record.
In the employee example, the linked field is the employee’s last name.
When you click a link, the browser page changes to expand the record
and display the detail page, as shown in Figure 1-15.
Figure 1-14:
The browser
displays the
master page
that uses
the data
from the
database.
52_781428 bk09ch01.qxp 6/19/06 11:46 AM Page 706