Dynamic Web Tutorials and Notes

Create Master-Detail Pages

  1. File>New
  2. Select Dynamic Page
  3. Click ASP VB Script
  4. Click ‘Create’
  5. Create a DSN to your database if necessary (see IV)
  6. Create a Recordset (see V) – rsDetails
  7. Save the page as master.asp
  8. Click ‘Insert > Application Objects > Master Detail Page Set’
  9. In ‘Master Page Fields’ delete all fields except firstname and lastname
  10. Select lastname to link to the detail page in the ‘Link to Detail from’ box
  11. Check that the unique key is correct
  12. Type detail.asp in the ‘Detail Page Name’ box – Dreamweaver MX will create this for you
  13. Leave all fields in the ‘Detail Page Fields’ box
  14. Click ‘OK’
  15. Save both pages
  16. Restart the computer and test them by opening up master.asp and linking to the detail pages
  17. The master page should look like this:
  18. Clicking on the fifth record we can see that persons details:
Valid CSS! . Valid XHTML 1.0 Strict . Level Triple-A conformance icon, 
          W3C-WAI Web Content Accessibility Guidelines 1.0 .