|
Introduction
In this project you will continue working on integrating Web pages
with the contacts.mdb database. This
project applies what you learned in lessons 7 & 8 and Project 4, so
be sure to do those before you try this project. These
labs are somewhat complicated, so it wouldn't hurt to repeat them a
few times for practice until you understand the concept of sending
a URL parameter and moving to a specific record
or filtering the recordset based on that parameter.
For this project, you
will create a page to add a record and a page to update a record in
the Contacts database.
This assignment will be easier if you view my example before you begin. See
my add
page and my list
of links (click update to go to update page).
What to Do
-
You should already have a working connection (connContacts -
created in the previous).
-
Open add.asp. Use
the Record Insertion Form Wizard to create a form to add a new
record. Save, upload, and test.
-
Open list.asp and
add a link to add.asp at the bottom
of the page.
- Add the word "update" after the link description
-- make sure this is part of the repeat behavior. Save, upload, and
test. When you test, you should see update next to every
record.
- Select the word update and add a Go to Detail Page server
behavior. You will go to update.asp with num as a parameter. You can name the parameter whatever
you like, but remember the name since you will need it in the next
step.
Save, upload, and test. When you test, click the update link
and examine your query string.
- Open update.asp and
create a recordset with a filter so that the page only displays the
record of interest (parameter passed in query string matches num in
recordset).
- Use the Record Update Form Wizard to create
a form that will update a record.
- Save, upload, and test. When you click update on list.asp,
you should see the appropriate record appear. You should
be able to change values in fields and update your record. Your
file should work like my
example.
Submitting work
- Add a link to this assignment from 213homework.htm.
- Upload your files to the cis2 server. Don't
forget to TEST YOUR WORK on the server!
- Submit your URL to
Blackboard.
Grading - 60 points
| Points |
Requirements |
| 15 |
record insertion form works |
| 5 |
list links to add page |
| 5 |
"update" is next to every record |
| 10 |
"update" links to the update page with a correct query
string |
| 15 |
page displays appropriate record |
| 10 |
update form works |
|