Displaying multiple recordset results

Displaying multiple recordset results

The Repeat Region server behavior lets you display multiple records from a recordset within a page. Any dynamic data selection can be turned into a repeated region. However, the most common regions are tables, table rows, or a series of table rows.

To learn more about using the Repeat Region server behavior, see Displaying multiple recordset results and Creating a table with a Repeat Region server behavior.

To create a repeated region:

  1. In Design view, select a region that contains dynamic content.

    The selection can be anything, including a table, a table row, or even a paragraph of text.

    To select a region on the page precisely, you can use the tag selector on the left corner of the document window. For example, if the region is a table row, click inside the row on the page, then click the rightmost <tr> tag in the tag selector to select the table row.

  2. Select Window > Server Behaviors to display the Server Behaviors panel.
  3. Click the Plus (+) button, and select Repeat Region.

    The Repeat Region dialog box appears.

    This is a picture of the feature being described.

  4. Select the name of the recordset to use from the pop-up menu.
  5. Select the number of records to display per page.
  6. Click OK.

    In the Document window, a thin, tabbed, gray outline appears around the repeated region. In the Live Data window (View > Live Data), the gray outline disappears and the selection expands to display the number of records you specified.

Related topics

  • About displaying database records
  • Showing and hiding regions based on recordset results
  • Creating a table with a Repeat Region server behavior

Getting Started with Dreamweaver
Dreamweaver Basics
Working with Dreamweaver Sites
Laying Out Pages
Adding Content to Pages
Working with Page Code
Preparing to Build Dynamic Sites
Making Pages Dynamic
Defining Sources of Dynamic Content
Developing Applications Rapidly