Macromedia dreamweaver 8-using dreamweaver User Manual
904
Chapter 41: Building ASP.NET Applications Rapidly
Here’s an example of a DataGrid dialog box that defines three columns.
The next step in creating master/detail pages is to create links that open the detail page and
pass the ID of the record the user selected.
pass the ID of the record the user selected.
Opening a detail page and passing a record ID
(ASP.NET)
(ASP.NET)
After adding a DataGrid to the master page, you must create links that open the detail page
and pass the ID of the record that the user selected. The detail page will use this ID to find the
requested record in the database and display it.
and pass the ID of the record that the user selected. The detail page will use this ID to find the
requested record in the database and display it.
The record ID is passed to the detail page in a URL parameter. For more information, see
In a DataGrid, you create these links by turning a column in the DataGrid into a hyperlink
column and setting its attributes, as described in this section.
column and setting its attributes, as described in this section.
To open the detail page and pass a URL parameter that contains the ID of the
record the user clicked:
record the user clicked:
1.
Open the DataGrid dialog box you created in the previous section.
To open the dialog box, double-click your DataGrid in the Server Behaviors panel
(Window > Server Behaviors).
(Window > Server Behaviors).
The DataGrid dialog box opens.