Education is the most powerful weapon
which you can use to change the world.
-Nelson Mandela
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 
NEW Release: Access Advanced Level 2    dismiss
 
 
Courses - Active Server Pages 302
Description: Advanced ASP 302
Running Time: 73 minutes
Pre-Requisites: ASP 301
Versions:
We use Standard ASP on a Windows Server. We also use Microsoft FrontPage 2003 for our Web editor. You can use any server or Web editor compatible with ASP.
 

 Click here for the Teacher's Outline
 

Major topics covered in this class:

  • Display a Specific Database Record
  • SQL Statement
  • Editing a Record
  • Deleting a Record
  • Confirming Deletion

In this lesson, we will continue working with databases. We will learn how to open up a table and display a specific record by looping through all of the records. We'll let the user click on the record he wants to see in our customer list:

Then we'll display that specific record, showing all of the fields for that customer. In fact, I'll show you a trick so that we can show all of the fields without having to specifically lay out each field on the page.

Next, we'll learn a more efficient way to open up a table and show a specific record using an SQL Statement. I'll give you a thorough background on what SQL is and how it works. We'll learn about the SELECT and FROM statements as well as WHERE and ORDER BY clauses.

We'll also create hyperlinks in our table column headers so we can sort the table based on any of the fields using the ORDER BY clause.

Next we'll create a form so that we can edit any of the records in our database. We'll use the same form for adding new records as well.

Finally, we'll learn how to delete records, and I'll even show you a little JavaScript so we can ask the user if they're sure they want to delete the customer.

Again, if you're interested in learning how to work with online database, this class is not to be missed. We cover a lot of fundamentals - displaying specific data, editing, and deleting records.

 
 


Try a FREE Demo Lesson

 

 Click here for the Teacher's Outline
 
 
 

Student Interaction: Active Server Pages 302

Richard on 8/20/2008:  ASP 302 covers Display a Specific Database Record, SQL Statements, Editing a Record, Deleting a Record, Confirming Deletion with JavaScript. See the complete outline here: /site/courselist/asp/asp302/
 Hamish on 11/29/2010: Hi Richard,

ASP 302 Edit Records 1
When I'm in edit mode some of the texboxes are highlighted yellow, as if it's disable...(cannot update the records)and others are highlight white which allows me to edit and update the records for those fields. Any advice what I have done wrong and why some texboxes are highlighted and other texboxxes aren't.

Thanks Hamish

Deisy Enriquez on 5/23/2013: Do you cover how to open an external file for a related record (e.g. by EmployeeID)? So I am guessing a hyperlink that will open a file (from a folder with files for all Employees) but open the file related to that employee only. Thank you.

Reply from Richard Rost:

That depends on many factors. What kind of file are we talking about? If you're talking about something like a PDF file, then you would have to construct the hyperlink to that file based on the employee ID or some other field.

 

You may want to read these articles from the 599CD News:

 

Learn
 
Accessindex
Excelindex
Wordindex
Windowsindex
PowerPointindex
Photoshopindex
Visual Basicindex
ASPindex
Seminars
More...
Customers
 
Account Login
Online Theater
Downloads
Lost Password
Free Upgrades
Insider Circle
Student Databases
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Articles
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Help
 
Live Chat
Customer Support
WalkThru Tutorials
Troubleshooting
FAQs
TechHelp
Consulting Services
About Us
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Order
 
Video Tutorials
Handbooks
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Gift CDs
Contact
 
Live Chat
General Info
Support Policy
Contact Form
Email Us
Mailing Address
Phone Number
Fax Number
Course Survey
Facebook    Twitter

Google Plus    LinkedIn

Blog RSS Feed    YouTube Channel
Richard Rost Microsoft MVP