Справочник Пользователя для Macromedia dreamweaver 8-using dreamweaver

Скачать
Страница из 1030
936
Chapter 42:  Building ASP and JSP Applications Rapidly
Building master/detail pages block by block (ASP 
and JSP)
This section describes how to build a set of master/detail pages without using the Master/
Detail Page Set application object. For instructions on using the application object, see 
.
This section describes the steps to build a set of master/detail pages:
Creating a master page and defining a recordset for it (ASP 
and JSP)
The first step in building master/detail pages is to create a blank master page and add a 
recordset to it.
You can define a recordset at design time (see 
) or the user 
can define one at runtime (see 
Make sure the recordset contains not only all the columns you’ll need for the master page, but 
also all the columns you’ll need for the detail page.
Typically, the recordset on the master page extracts a few columns from a database table while 
the recordset on the detail page extracts more columns from the same table to provide the 
extra detail.
The next step in creating master/detail pages is to display the records on the master page.
Displaying the records on the master page (ASP and JSP)
After you create a blank master page and define a recordset for it, you must display the records 
on the page.
To display the records on the master page:
1.
Create a page layout to display multiple records and bind recordset columns to the page.
A common approach is to create a two-row HTML table on the master page and to drag a 
limited number of recordset columns from the Bindings panel (Window > Bindings) into 
the table’s second row. (Use the first row to display the table’s column headings.)