+ All Categories
Home > Documents > Microsoft FrontPage 2003 Illustrated Complete

Microsoft FrontPage 2003 Illustrated Complete

Date post: 19-Mar-2016
Category:
Upload: dash
View: 52 times
Download: 2 times
Share this document with a friend
Description:
Microsoft FrontPage 2003 Illustrated Complete. Integrating a Database with a Web Site. Objectives. Review database concepts Import a database into a Web site Create a data access page Use a data access page. Objectives. Send form results to a database Use an Active Server Page - PowerPoint PPT Presentation
Popular Tags:
29
Microsoft FrontPage 2003 Microsoft FrontPage 2003 Illustrated Complete Illustrated Complete Integrating a Integrating a Database with a Database with a Web Site Web Site
Transcript
Page 1: Microsoft FrontPage 2003  Illustrated Complete

Microsoft FrontPage 2003 Microsoft FrontPage 2003 Illustrated CompleteIllustrated Complete

Integrating a Database Integrating a Database with a Web Sitewith a Web Site

Page 2: Microsoft FrontPage 2003  Illustrated Complete

2Integrating a Database with a Web Site Unit N

Review database conceptsReview database concepts Import a database into a Web siteImport a database into a Web site Create a data access pageCreate a data access page Use a data access pageUse a data access page

ObjectivesObjectives

Page 3: Microsoft FrontPage 2003  Illustrated Complete

3Integrating a Database with a Web Site Unit N

ObjectivesObjectives Send form results to a databaseSend form results to a database Use an Active Server PageUse an Active Server Page Create a Database Results regionCreate a Database Results region Create a search form in a Web pageCreate a search form in a Web page

Page 4: Microsoft FrontPage 2003  Illustrated Complete

4Integrating a Database with a Web Site Unit N

Integrating a Database with a Integrating a Database with a Web SiteWeb Site You can send the form results to one of You can send the form results to one of

several places:several places:– A text fileA text file– As a Web pageAs a Web page– In a databaseIn a database

A page that displays database data must A page that displays database data must be saved as an be saved as an Active Server Page Active Server Page with with an .asp file extensionan .asp file extension

An Active Server Page is a dynamic Web An Active Server Page is a dynamic Web page whose content changes as requiredpage whose content changes as required

Page 5: Microsoft FrontPage 2003  Illustrated Complete

5Integrating a Database with a Web Site Unit N

Reviewing Database ConceptsReviewing Database Concepts

A A databasedatabase is a collection of related is a collection of related tables that stores data about an tables that stores data about an entityentity

An An entityentity is a person, place, thing, or is a person, place, thing, or ideaidea

A A tabletable contains fields (also called contains fields (also called columns) that describe the columns) that describe the characteristics of the entitycharacteristics of the entity

Page 6: Microsoft FrontPage 2003  Illustrated Complete

6Integrating a Database with a Web Site Unit N

Reviewing Database Concepts Reviewing Database Concepts (cont.)(cont.) The The fieldsfields in the form store data about the in the form store data about the

entityentity The data stored in the fields for one form The data stored in the fields for one form

create a create a recordrecord The field that contains a value that uniquely The field that contains a value that uniquely

identifies each record in the table is called identifies each record in the table is called the table’sthe table’s primary key primary key

You can create anYou can create an AutoNumber field AutoNumber field in the in the table, which automatically numbers records table, which automatically numbers records in sequential order, thereby creating a in sequential order, thereby creating a primary keyprimary key

Page 7: Microsoft FrontPage 2003  Illustrated Complete

7Integrating a Database with a Web Site Unit N

Reviewing Database Concepts Reviewing Database Concepts (cont.)(cont.) Lenders database in the Access Lenders database in the Access

program windowprogram window

Page 8: Microsoft FrontPage 2003  Illustrated Complete

8Integrating a Database with a Web Site Unit N

Importing a Database into a Web Importing a Database into a Web SiteSite There are two ways to import a There are two ways to import a

database into a FrontPage Web site:database into a FrontPage Web site:– Create the database in Access and Create the database in Access and

copy and paste it into the Web sitecopy and paste it into the Web site– Create a form in a Web page, then use Create a form in a Web page, then use

FrontPage to create a database and a FrontPage to create a database and a database connection using Access or database connection using Access or another supported database program in another supported database program in which to store the form’s datawhich to store the form’s data

Page 9: Microsoft FrontPage 2003  Illustrated Complete

9Integrating a Database with a Web Site Unit N

Importing a Database into a Web Importing a Database into a Web Site (cont.)Site (cont.) No matter how you import a database, No matter how you import a database,

FrontPage automatically:FrontPage automatically:– Adds the database file to the Web siteAdds the database file to the Web site– Creates the Creates the fpdbfpdb (for FrontPage database) (for FrontPage database)

folder in which to store the database filefolder in which to store the database file– Makes a connection to the databaseMakes a connection to the database

A A database connectiondatabase connection specifies the specifies the name, location, and type of database you name, location, and type of database you want to access from a Web sitewant to access from a Web site

Page 10: Microsoft FrontPage 2003  Illustrated Complete

10Integrating a Database with a Web Site Unit N

Importing a Database into a Web Importing a Database into a Web Site (cont.)Site (cont.) Add Database Connection dialog Add Database Connection dialog

boxbox

Page 11: Microsoft FrontPage 2003  Illustrated Complete

11Integrating a Database with a Web Site Unit N

Creating a Data Access PageCreating a Data Access Page A A data access page data access page is a Web page that is a Web page that

shows data from the database object on shows data from the database object on which the page is basedwhich the page is based

Users with the appropriate permission can Users with the appropriate permission can use a data access page to view, add, use a data access page to view, add, delete, and sort recordsdelete, and sort records

The user must use a database program The user must use a database program that supports data access pages, such as that supports data access pages, such as Access, to create a data access page Access, to create a data access page object in the database and an HTML page object in the database and an HTML page that can be saved in a Web sitethat can be saved in a Web site

Page 12: Microsoft FrontPage 2003  Illustrated Complete

12Integrating a Database with a Web Site Unit N

Creating a Data Access Page Creating a Data Access Page (cont.)(cont.) Data access page in Access Page viewData access page in Access Page view

Page 13: Microsoft FrontPage 2003  Illustrated Complete

13Integrating a Database with a Web Site Unit N

Using a Data Access PageUsing a Data Access Page

Any changes made in the database Any changes made in the database are immediately reflected in the Web are immediately reflected in the Web pagepage

Any changes made to the data using Any changes made to the data using the Web page are immediately the Web page are immediately reflected in the tablereflected in the table

Page 14: Microsoft FrontPage 2003  Illustrated Complete

14Integrating a Database with a Web Site Unit N

Using a Data Access Page Using a Data Access Page (cont.)(cont.) You can use buttons on the record You can use buttons on the record

navigation bar to browse, sort, and filter navigation bar to browse, sort, and filter the records in any orderthe records in any order

These actions only apply to the data you These actions only apply to the data you see in the Web page and do not affect the see in the Web page and do not affect the data as it is stored in the databasedata as it is stored in the database

You can add, delete, and change records You can add, delete, and change records without affecting the data in the databasewithout affecting the data in the database

Page 15: Microsoft FrontPage 2003  Illustrated Complete

15Integrating a Database with a Web Site Unit N

Using a Data Access Page Using a Data Access Page (cont.)(cont.) New record in the data access pageNew record in the data access page

Page 16: Microsoft FrontPage 2003  Illustrated Complete

16Integrating a Database with a Web Site Unit N

Using a Data Access Page Using a Data Access Page (cont.)(cont.) Record navigation bar buttons and their Record navigation bar buttons and their

descriptionsdescriptions

Page 17: Microsoft FrontPage 2003  Illustrated Complete

17Integrating a Database with a Web Site Unit N

Sending Form Results to a Sending Form Results to a DatabaseDatabase You can set a form to store the data it You can set a form to store the data it

collects in a database tablecollects in a database table Before the form can send data to a Before the form can send data to a

database, you must identify:database, you must identify:– The database connection to use The database connection to use – The name of each form field in the form The name of each form field in the form – Its matching field in the databaseIts matching field in the database

The form field names in the form and the The form field names in the form and the filed names in the database do not have to filed names in the database do not have to have the same nameshave the same names

Page 18: Microsoft FrontPage 2003  Illustrated Complete

18Integrating a Database with a Web Site Unit N

Sending Form Results to a Sending Form Results to a Database (cont.)Database (cont.)

Form Properties Form Properties dialog boxdialog box

Options for Saving Results to Options for Saving Results to Database dialog boxDatabase dialog box

Page 19: Microsoft FrontPage 2003  Illustrated Complete

19Integrating a Database with a Web Site Unit N

Sending Form Results to a Sending Form Results to a Database (cont.)Database (cont.) Modify Field dialog boxModify Field dialog box

Page 20: Microsoft FrontPage 2003  Illustrated Complete

20Integrating a Database with a Web Site Unit N

Using an Active Server PageUsing an Active Server Page An Active Server Page is a dynamic Web An Active Server Page is a dynamic Web

page that contains scripts to process the page that contains scripts to process the pagepage

Active Server Pages contain data that is Active Server Pages contain data that is generated when the page is viewed using generated when the page is viewed using a Web browsera Web browser

When an Active Server Page is used to When an Active Server Page is used to display database data, the scripts in the display database data, the scripts in the page ensure that the data is currentpage ensure that the data is current

Page 21: Microsoft FrontPage 2003  Illustrated Complete

21Integrating a Database with a Web Site Unit N

Using an Active Server Page Using an Active Server Page (cont.)(cont.) Form Confirmation PageForm Confirmation Page

Page 22: Microsoft FrontPage 2003  Illustrated Complete

22Integrating a Database with a Web Site Unit N

Creating a Database Results Creating a Database Results RegionRegion A A Database Results regionDatabase Results region displays data displays data

from the database object on which it is from the database object on which it is basedbased

The Database Results region lets site The Database Results region lets site visitors examine the data contained in a visitors examine the data contained in a database object, but visitors cannot add, database object, but visitors cannot add, delete, or change the data in a Database delete, or change the data in a Database Results regionResults region

A Database Results region is for viewing A Database Results region is for viewing purposes onlypurposes only

Page 23: Microsoft FrontPage 2003  Illustrated Complete

23Integrating a Database with a Web Site Unit N

Creating a Database Results Creating a Database Results Region (cont.)Region (cont.) Database Results Wizard dialog boxDatabase Results Wizard dialog box

Page 24: Microsoft FrontPage 2003  Illustrated Complete

24Integrating a Database with a Web Site Unit N

Creating a Database Results Creating a Database Results Region (cont.)Region (cont.) Database Results region in a Web pageDatabase Results region in a Web page

Page 25: Microsoft FrontPage 2003  Illustrated Complete

25Integrating a Database with a Web Site Unit N

Creating a Search Form in a Creating a Search Form in a Web PageWeb Page A Database Results region can include a A Database Results region can include a

search form that lets the user query the search form that lets the user query the table on which the Database Results table on which the Database Results region is basedregion is based

The user can query the database table, The user can query the database table, but cannot change the table databut cannot change the table data

When you use the Database Results When you use the Database Results Wizard to set the criteria for a search form, Wizard to set the criteria for a search form, the search form is automatically added to the search form is automatically added to the Database Results regionthe Database Results region

Page 26: Microsoft FrontPage 2003  Illustrated Complete

26Integrating a Database with a Web Site Unit N

Creating a Search Form in a Creating a Search Form in a Web Page (cont.)Web Page (cont.) Add Criteria dialog boxAdd Criteria dialog box

Page 27: Microsoft FrontPage 2003  Illustrated Complete

27Integrating a Database with a Web Site Unit N

Creating a Search Form in a Creating a Search Form in a Web Page (cont.)Web Page (cont.) Lender List page after executing a Lender List page after executing a

searchsearch

Page 28: Microsoft FrontPage 2003  Illustrated Complete

28Integrating a Database with a Web Site Unit N

SummarySummary

Reviewing database conceptsReviewing database concepts Importing a database into a Web siteImporting a database into a Web site Creating a data access pageCreating a data access page Using a data access pageUsing a data access page

Page 29: Microsoft FrontPage 2003  Illustrated Complete

29Integrating a Database with a Web Site Unit N

SummarySummary

Sending form results to a databaseSending form results to a database Using an Active Server PageUsing an Active Server Page Creating a Database Results regionCreating a Database Results region Creating a search form in a Web Creating a search form in a Web

pagepage


Recommended