Building Pages To Update A Record (Asp And Jsp) - MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

Building pages to update a record (ASP and JSP)

Your application can contain a set of pages that lets users update existing records in a database
table. The pages normally consist of a search page, a results page, and an update page. The search
and results page let users retrieve the record and the update page lets users modify the record.
This section describes the steps to build a page to update records:
"Searching for the record to update (ASP and JSP)" on page 707
"Opening the update page and passing the record ID (ASP and JSP)" on page 707
"Retrieving the record to update (ASP and JSP)" on page 708
"Completing the update page in one operation (ASP and JSP)" on page 709
"Completing the update page block by block (ASP and JSP)" on page 709
Related topics
"Building a record insert page (all servers)" on page 646
"Building pages to delete a record (ASP and JSP)" on page 711
Searching for the record to update (ASP and JSP)
When users want to update a record, they must first find that record in the database. Accordingly,
you need a search and a results page to work with the update page. The user enters search criteria
in the search page and selects the record on the results page. When the user clicks the record, the
update page opens and displays the record in an HTML form.
For instructions on creating pages to search for the record to update, see
pages (ColdFusion, ASP, JSP, PHP)" on page
After creating the search/results pages, the next step in creating a record update page is to create
links on the results page that open the update page when clicked.
Opening the update page and passing the record ID (ASP and JSP)
After creating the search/results pages, 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
parameters" on page
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.
1
In the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button and select
2
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.
3
Name the URL parameter and specify the recordset and column containing the record ID you
4
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.
5
518.
641.
Building pages to update a record (ASP and JSP)
"Building search/results
"URL
707

Advertisement

Table of Contents
loading
Need help?

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

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents