SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 1297 | Next

Joseph W. Lowery

"Dreamweaver CS3 Bible"

A confirmation
message on the Submit button (with something akin to ???Are you sure you want to do this????) is nice also.
To attach a Delete Record server behavior to a form, follow these steps:
1. Make sure that a form exists on a dynamic page that includes at least one recordset.
2. From the Server Behaviors panel, choose Delete Record. The Delete Record dialog box is displayed,
as shown in Figure 23-18.
FIGURE 23-18
Maintain an up-to-date data source with the Delete Record server behavior.
3. From the Delete Record dialog box, choose the Connection from the drop-down list. If you need
to establish a new connection, click Define.
4. Select the data table to delete from the Delete From Table list.
5. Choose the data source on which to base the deletion from the Select Record From list.
6. Select the key field from the Unique Key Column list. Dreamweaver attempts to detect whether
the field is a number type and, if so, selects the Numeric option.
7. Enter the path to the destination page in the After Deleting, Go To field; or click the Browse button
to locate the file.
8. Choose the form that contains the delete Submit button.
The Delete Record server behavior is executed when the user clicks the Submit button in the form. It??™s a
good idea to confirm the deletion with your user on the destination page.


Pages:
1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309