Showing And Hiding Regions Based On Recordset Results; Displaying Multiple Recordset Results - MACROMEDIA DREAMWEAVER MX 2004-USING DREAMWEAVER Use Manual

Hide thumbs Also See for DREAMWEAVER MX 2004-USING DREAMWEAVER:
Table of Contents

Advertisement

Showing and hiding regions based on recordset results

Dreamweaver includes a set of server behaviors that let you show or hide a region based on the
results returned by a recordset. To learn more about the Show Region server behaviors, and how
they can be used to show or hide recordset results, see
recordset results" on page
To show a region only when it's needed:
In Design view, select the region on the page to show or hide.
1
In the Server Behaviors panel (Window > Server Behaviors), click the Plus (+) button.
2
Select Show Region from the pop-up menu, and then select one of the listed server behaviors.
3
Click OK.
4
Related topics
"About displaying database records" on page 555
"Creating a table with a Repeat Region server behavior" on page 567

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
results" on page 558
To create a repeated region:
In Design view, select a region that contains dynamic content.
1
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
Select Window > Server Behaviors to display the Server Behaviors panel.
2
Click the Plus (+) button, and select Repeat Region.
3
The Repeat Region dialog box appears.
Select the name of the recordset to use from the pop-up menu.
4
566
Chapter 35: Displaying Database Records
558.
and
"Creating a table with a Repeat Region server behavior" on page
tag in the tag selector to select the table row.
<tr>
"Displaying and hiding regions based on
"Displaying multiple recordset
567.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Dreamweaver mx 2004

Table of Contents