Datasheet
Testing Your Master and Detail Pages
702
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.
• In any case, be sure to note the name of this URL parameter because
you need that name when you create the detail page (which you can
read about in the following section, “Creating a detail page”).
• Dreamweaver uses a {0} placeholder to indicate where it places the
value of the unique identifier when someone accesses the page.
10. Click OK to close the Hyperlink Column dialog box.
11. Click OK.
The DataGrid dialog box closes. The DataGrid on your page is updated.
Creating a detail page
After you create a master page for ASP.NET (as described in the two
previous sections), you need to create a detail page to display the record.
To do 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: