The roots of education are bitter,
but the fruit is sweet.
-Aristotle
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 
NEW Release: Access Advanced Level 2    dismiss
 
 
Courses - Active Server Pages 104
Description: Basic ASP 104
Running Time: 72 minutes
Pre-Requisites: ASP 103
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:

  • Multiple Related Checkbox Values
  • The Request Object
  • Cookies
  • Session Variables
  • Application Variables

There is a lot of very important material in this class that you will definitely need to know before moving on to our intermediate or advanced classes.

We'll start out by learning a special technique for dealing with forms that have lots of different related checkboxes on them. For example, you're making a survey asking visitors what their favorite magazines are. You don't want to have to deal with programming your ASP scripts to accept 30 different checkboxes, right? I'll show you a technique to handle them with one statement.

Next we'll study the Request object in more detail. You'll learn how to get all kinds of interesting information from your visitors, such as where they came from (what web site), and what kind of browser they're using. You'll also learn how to read server environment variables to determine things such as the URL of the current page.

You will next learn a very important concept that is vital for almost every good web site: how to track information on your users in cookies. Cookies allow you to save information about your visitors right on their own computers, so the next time they visit your site, you know who they are, and any other information you might have gathered about them.

Next we'll learn about Session variables which allow you to store information in the server's memory about the current visitor, and to remember that information the entire time they're on your site (such as their username and password, for example).

Finally, you'll learn about Application variables, which are very similar to Session variables, but they allow you to save information in memory about the entire web site as a whole - great for keeping track of how many users are on your site, latest information, news, and updates. You can use them, for example, to display a "Live Help is Available" message for your users... and they'll all see the same message.

You can change the status of your Live Help using a simple HTML form and ASP script.

Cookies and Session variables are the two cornerstones of building quality ASP web pages. Do not miss this class. We'll be relying on Session variables for almost all of the rest of our ASP classes, especially when we get involved in database development.

 
 


Try a FREE Demo Lesson

 

 Click here for the Teacher's Outline
 
 
 

Student Interaction: Active Server Pages 104

Richard on 8/20/2008:  ASP 104 covers Multiple Related Checkbox Values, The Request Object, Cookies, Session Variables, Application Variables See the complete outline here: /site/courselist/asp/asp104/
 Roberta on 11/12/2008: Questions! Questions! Here is another one. I have two different header.asp, one for general public, one for members. On each of my pages I have include header.asp. When a member logs in, I want the header to change to the member header and remain in place for the entire time they are logged in. When they log out, it changes back to the general header. My line of thinking is that it has something to do with Sessions.
 Roberta on 11/12/2008: I figured out the header problem. Here is what I did.
<%
if Session("Username")<>"" then %>


<% else %>


<% end if %>
I put this in the file called header.asp.

It seems to work but if you see a problem with this, please let me know.

Thanks


Richard Rost on 11/14/2008: Yep - just use a Session variable like I cover in this class. Just set a session variable when the user logs on (which I cover in a later class) then check it in your header.asp. You might find it easier to just have ONE header.asp file and use the session variable in it to display different information based on whether or not that user is logged on. I cover most of this in ASP 303.
Richard Rost on 11/14/2008: Roberta, your session variable solution is just fine. If you want to learn how to actually store usernames and passwords into a DATABASE TABLE and look them up, I cover that in the 300-level series classes.
 

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