Opening the update page and passing the record ID (ASP and JSP)

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:

  1. In the results page, select the dynamic content placeholder for the text you want to be linked.
  2. 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.

  3. In the Detail Page text box, click Browse and locate the update page.
  4. 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.

  5. 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).



Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Developing Applications Rapidly
Building ColdFusion Applications Rapidly
Building ASP.NET Applications Rapidly
Building ASP and JSP Applications Rapidly
 
ASPTreeView.com
 
Evaluation has ВМРПєµјєexpired.
Info...