Retrieving the record to update (ASP.NET)
After the search page passes a URL parameter to the update page, the update page must read the
parameter, retrieve the record from the database table, and store it temporarily in a DataSet.
To retrieve the record to update:
Create a new ASP.NET page in Dreamweaver and save it.
1
The page will become your update page.
In the Bindings panel (Window > Bindings), click the Plus (+) button and select
2
DataSet (Query).
If the advanced dialog box appears, click the Simple button to open the simple dialog box.
Name the DataSet, and then select a connection and database table containing the data you
3
want users to update.
Click the Selected option and select a key column (usually the record ID column) and the
4
columns containing the data to be updated.
Configure the Filter area so that the value of your key column equals the value of the
5
corresponding URL parameter passed by the search page.
This kind of filter creates a DataSet that contains only one record—the record with an ID that
matches the value of the URL parameter. For example, if your key column contains record ID
information and is called CODE, and if the search page passes the corresponding record ID
information in the URL parameter called
should look:
Click OK.
6
When the user selects a record on the search page, the update page generates a DataSet containing
only the selected record.
, then here's how your Filter area
recordID
Building pages to update a record (ASP.NET)
689
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