Wiley Dreamweaver CS5 All-in-One For Dummies 978-0-470-61077-0 ユーザーズマニュアル

製品コード
978-0-470-61077-0
ページ / 16
Chapter 1: Building Master and 
Detail Pages
In This Chapter
✓ 
Developing master and detail pages at the same time
✓ 
Building your master and detail pages separately
✓ 
Putting together master and detail pages for ASP.NET
✓ 
Making sure your master and detail pages work
S
imple sets of data can be expressed in a simple table, much like a tradi-
tional spreadsheet. But sometimes you don’t want to display complete 
details on a given table. For example, suppose you want to display a master 
list of employees but want to view the full address and department details for 
an employee only when that record is selected. Dreamweaver CS5 enables 
you to do this by setting up what is known as a master-detail relationship.
master page displays a list of records and corresponding links for each 
record. A user can click a link to see further information about a record on 
its associated detail page.
Depending on your programming language, you can either build the set of 
master and detail pages all in one operation, or you can separately build the 
master pages and then the detail pages. You find out more about both meth-
ods in this chapter.
 
The examples in this chapter use a simple Employee table, which you can 
see in Table 1-1. The first value, the empid, is a special field called a key. It 
always has a unique value. Therefore, if you query for a record in a table by 
using the key, you always get only the row that you’re looking for because 
no two rows have the same key.
53_610770-bk09ch01.indd   731
53_610770-bk09ch01.indd   731
5/6/10   1:20 PM
5/6/10   1:20 PM
COPYRIGHTED MATERIAL