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

製品コード
978-0-470-39180-8
ページ / 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 
traditional spreadsheet. But sometimes you don’t wish to display 
complete details on a given table. For example, suppose you wish to display 
a master list of employees. However, you only wish for the full address and 
department details to be displayed for an employee when that record is 
selected. Dreamweaver enables you to do this by setting up what is known 
as a master-detail relationship.
You can use Dreamweaver to build master and detail Web pages, which 
are a popular way to display information on your Web site. A 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 can find out more about both 
methods 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.
COPYRIGHTED MATERIAL