Deleting the record from the database table (ASP and JSP)
After adding a button the user can click to delete the record (see Sending the delete command to the server (ASP and JSP), the final step is to add the Delete Record server behavior to update the database table after the user clicks the Submit button.
To add a server behavior to delete the database table:
- In the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button and select Delete Record from the pop-up menu.
The Delete Record dialog box appears.
- Complete the dialog box.
For more information, click the Help button in the dialog box.
- Click OK.
Dreamweaver adds a server behavior to the page that lets users delete records in a database table by clicking the Submit button on the form.