Macromedia dreamweaver 8-using dreamweaver User Manual
732
Chapter 35: Displaying Database Records
To use the Recordset Navigation Status server object:
1.
Place the insertion point where you want to insert the record counter.
2.
Select Insert > Application Objects > Recordset Navigation Status.
The Insert Recordset Navigation Status dialog box is displayed.
Select the recordset you want to use from the Recordset pop-up menu.
3.
Click OK.
The Recordset Navigation Status server object inserts a text record counter that appears
similar to the one shown below:
similar to the one shown below:
You can use the Dreamweaver page-design tools to customize the record counter.
When viewed in the Live Data window or a browser, the counter will appear similar to the
one shown below:
one shown below:
Creating custom record counters
To create a custom record counter for a page, you must first create a recordset for the page, an
appropriate page layout to contain the dynamic content, and a recordset navigation bar. To
learn more about creating these elements and adding them to a page, see
appropriate page layout to contain the dynamic content, and a recordset navigation bar. To
learn more about creating these elements and adding them to a page, see
. After you have created the above elements in the page, you can create a custom
record counter.
This example creates a record counter that will appear similar to that created in the previous
section,
section,
. The record counter in this example will appear as follows:
Displaying records
StartRow
thru
EndRow
of
RecordSet.RecordCount
.
In this example, the text in sans-serif font represents the record count placeholders that will be
inserted in the page.
inserted in the page.