Opening the update page and passing the record ID (ASP and JSP)
After creating the search/results pages (see Building search/results pages (ColdFusion, ASP, JSP, PHP)), you must create links on the results page that open the update page and pass the ID of the record that the user selected. The update page will use this ID to find the requested record in the database and display it.
The record ID is passed to the update page in a URL parameter. For more information, see URL parameters.
To create links to open the update page and pass the record ID:
- In the results page, select the dynamic content placeholder for the text you want to be linked.
- In the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button and select Go To Detail Page from the pop-up menu.
The Go To Detail Page dialog box appears.
- In the Detail Page text box, click Browse and locate the update page.
- Name the URL parameter and specify the recordset and column containing the record ID you want to pass to the update page.
Make a note of the name of the URL parameter because you'll use it in the update page later.
- Click OK.
Dreamweaver inserts a special link in the page. When the user clicks the link, a URL parameter containing the record ID is passed to the update page.
The next step in creating a record update page is to retrieve the record to update. See Retrieving the record to update (ASP and JSP).