MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual page 691

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

Advertisement

Completing the update page block by block (ASP.NET)
An update page has three building blocks:
A filtered DataSet to retrieve the record from a database table (see
update (ASP.NET)" on page
An HTML form to let users modify the record's data
An Update Record server behavior to update the database table
You can add the final two basic building blocks of an update page separately using the form tools
and the Server Behaviors panel.
Before you can add the building blocks, your web application must be able to identify the record
to update, and your update page must be able to retrieve it. See
update (ASP.NET)" on page
(ASP.NET)" on page
Completing the update page consists of three tasks:
Adding an HTML form to the page to let users modify the data
Displaying the record in the form by binding the form objects to database table columns
Adding the Update Record server behavior to update the database table after the user modifies
the record
To add an HTML form to an update page:
Create a new ASP.NET page.
1
This will become your update page.
Lay out your page using the Dreamweaver design tools.
2
Add an HTML form by placing the insertion point where you want the form to appear and
3
selecting Form from the Insert menu.
An empty form is created on the page. You may have to turn on Invisible Elements (View >
Visual Aids > Invisible Elements) to see the form's boundaries, which are represented by
thin red lines.
Name the HTML form by clicking the
4
select the form, opening the Property inspector (Window > Properties), and entering a name in
the Form Name box.
You don't have to specify an
to send the record data when the user clicks the Submit button. The Update Record server
behavior sets these attributes for you.
Add a form object such as a text field (Insert > Form > Text Field) for each column you want
5
to update in the database table.
The form objects let users modify the data. Text fields are common for this purpose, but you
can also use list/menus, checkboxes, and radio buttons.
Each form object should have a corresponding column in the DataSet you defined earlier. The
only exception is the unique key column, which should have no corresponding form object.
For more information on form objects, see
Add a Submit button to the form (Insert > Form > Button).
6
You can change the label of the Submit button by selecting the button, opening the Property
inspector (Window > Properties), and entering a new value in the Label text box.
689)
686,
"Opening the update page and passing the record ID
686, and
"Retrieving the record to update (ASP.NET)" on page
<form>
or
action
method
"Searching for the record to
tag at the bottom of the Document window to
attribute for the form to tell it where and how
"Inserting HTML form objects" on page
Building pages to update a record (ASP.NET)
"Retrieving the record to
689.
613.
691

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