Opening a detail page and passing a record ID (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.
The record ID is passed to the detail page in a URL parameter. For more information, see
parameters" on page
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.
To open the detail page and pass a URL parameter that contains the ID of the record the
user clicked:
Open the DataGrid dialog box you created in the previous section.
1
To open the dialog box, double-click your DataGrid in the Server Behaviors panel (Window >
Server Behaviors).
The DataGrid dialog box opens.
In the Columns box, select the column you want to apply links to.
2
Click the Change Column Type button and select Hyperlink from the pop-up menu.
3
The Hyperlink Column dialog box appears.
518.
Building master/detail pages (ASP.NET)
"URL
677
Need help?
Do you have a question about the DREAMWEAVER MX 2004-USING DREAMWEAVER and is the answer not in the manual?
Questions and answers