• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

23.4. Deleting Records

Dreamweaver's Delete Record server behavior lets you build pages for removing records from a database. The setup is similar to using the Update Record server behavior, in that you must create a page with a recordset that retrieves a single record—the item to delete. This is just like a detail page, as described on page 663. Another page must link to the delete page and provide the proper key for filtering to a single record on the delete page.

One way to go about this is to add a link—Delete This Record, perhaps—on a record detail page. The link should pass the primary key for the condemned record to another page (the Go to Detail Page server behavior described on page 667 can help with this). This page—the Delete page—would include a recordset that retrieves the file to be deleted.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint