Learning is not attained by chance, it must
be sought for with ardor and diligence.
-Abigail Adams
 
Home   News   Tips   Glossary   Templates   Forums   Help   Logon   Order   Contact Us  
 
NEW Release: Access Developer Level 3   dismiss
 
 
Courses - Active Server Pages 101
Description: Introduction to Active Server Pages
Running Time: 96 minutes
Pre-Requisites: Internet skills required (how to use the Web)
FrontPage 101 recommended
Visual Basic 101 recommended
Access 101 recommended
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
 

Active Server Pages (ASP) is a technology to create dynamic Web pages - pages that change for each user. You can use ASP to create customized pages for your visitors, query databases, and even build entire e-commerce solutions.

Major topics covered in this class:

  • Key Definitions
  • Components of an ASP Script
  • Basic ASP Commands
  • If / Then / Else Statements
  • HTML Tags in ASP Scripts
  • Variables & Loops
  • Performing Math in ASP
  • Processing HTML Form Input
  • Using the QueryString

NOTE: If you're not sure whether or not you're going to be able to use ASP on your web server, just click on the link above for the FREE PREVIEW of ASP 101. You'll be able to watch the first couple of lessons for free online, and that should tell you whether or not you'll be able to use ASP on your web server.


ASP 101 is the perfect class to get you started. We assume that you have at least some experience building basic Web pages. We recommend our FrontPage course as a pre-requisite, but as long as you know how to build a simple Web site (using any editor) that's OK. We also recommend our Visual Basic course first. ASP is based heavily on VB, and if you know a little bit of VB before taking ASP, it will help you - but it's not required.

We'll start off this course by talking about ASP - what Active Server Pages are, and how they work. We'll talk about terms, definitions, and other details about ASP. We'll talk about scripts and how they fit into Web pages. We'll discuss client-side v. server-side scripts.

Our first script starts out simple: we'll show you how to create a basic HTML page and insert some simple ASP commands into it. We'll start with just displaying the current date and time. This will let us show you the syntax of ASP scripting.

We'll learn about the Response.Write command, and how we can use it to display dynamic content on our pages. We'll learn about strings, and string concatenation. We'll see how functions work, and we'll use the DatePart function to display parts of a date (the month, year, etc.). We'll show you how conditional statements work with the IF/THEN command. We'll show you how to preview your ASP pages in your Web browser.

Next we'll see how we can include HTML tags inside of ASP scripts to format our text. You can use this technique to create dynamic colors, hyperlinks, and so on. We'll then learn about Loops. We'll show you how to declare variables to store data, and use those variables to control your loops.

We'll show you how to perform mathematical calculations in ASP - addition, subtraction, multiplication, division, etc. We'll also review the order of math operations. We'll go into more detail with the IF/THEN statement by adding the ELSE and ELSEIF clauses.

Next we'll learn something extremely useful by processing Form Data. We'll create an HTML form page to collect customer data. We'll show you how to strip out the unnecessary FrontPage code from your form HTML. We'll create an ASP page to receive that data and process it. This allows your Web sites to become interactive.

We'll teach you how to read the QueryString so that you can pass information to your ASP pages in the address bar of your browser, or hyperlinks. This will allow you to embed information in your pages that gets passed to ASP scripts when users click on them.

There is a lot of information covered in this class. It is the perfect basic class to give you the fundamentals of ASP programming. It's over 96 minutes long, and by the time you're done, you'll be creating your own ASP scripts and pages.

 
 


Try a FREE Demo Lesson

 

 Click here for the Teacher's Outline
 
 
 

Student Interaction: Active Server Pages 101

Richard on 1/1/2007:  Active Server Pages (ASP) is a technology to create dynamic Web pages - pages that change for each user. You can use ASP to create customized pages for your visitors, query databases, and even build entire e-commerce solutions. ASP 101 is the perfect class to get you started. We assume that you have at least some experience building basic Web pages. We recommend our FrontPage course as a pre-requisite, but as long as you know how to build a simple Web site (using any editor) that's OK. We also recommend our Visual Basic course first. ASP is based heavily on VB, and if you know a little bit of VB before taking ASP, it will help you - but it's not required. ASP 101 covers: Key ASP Definitions, Components of an ASP Script, Basic ASP Commands, If / Then / Else Statements, HTML Tags in ASP Scripts, Variables & Loops, Performing Math in ASP, Processing HTML Form Input, Using the QueryString. Click here for the complete outline: /site/courselist/asp/asp101/
Larry Kates on 11/27/2007: Well, this lesson was very informative, as far as it goes. I am wondering, though: when will ASP 102 be available? Is that where we will get instruction about building and using a database with ASP?
Larry Kates on 11/27/2007: I am trying an example of ASP on my web site. When I use the response.write command, it works, but if I embed ANY html tags (p or br) the resultant page does not load. I get a 505 (program error) error which i assume is caused by the server not recognising the html tag inside ASP.
 Larry Kates on 11/27/2007: Ok, I figured out that I had to include the tags inside of "'s and concatenate them with the variables.

I am ready to purchase the seminar, if you can tell me this: The html you used is pretty old; I am using CSS to style my web pages, and strict XTHML to write them. Will ASP be able to support CSS? Will your seminar show that?

 Larry Kates on 11/27/2007: Sorry, i answered my own question again: include the link to the css in the head part of the ASP page just like any HTML file
Richard Rost on 11/28/2007: Glad I could help. Yes, HTML tags need to be enclosed in quotes just like any other normal text. My courses, including the seminar, use standard HTML 4. I will be covering CSS and XHTML in future classes, but as of right now, I don't. Will ASP support CSS? Of course. Remember, ASP is pre-processed by the web server before anything is sent to the browser - so in effect, anything that the browser can handle (including CSS) will be just fine.
Richard Rost on 11/28/2007: Again, glad I could help. :)
James WIse on 6/1/2008: The address you give for a Personal Web Server from Microsft is apparently no longer current. Do you have an up to date address?
Richard Rost on 6/13/2008: I don't believe Microsoft offers it for any operating system beyond Windows 98 anymore. If you have Windows 2000 or XP Pro you should just install IIS (Control Panel > Add/Remove Programs > Windows Components > IIS). That's their full "Internet Information Server" that real web sites use.

If you have XP Home Edition, you're stuck. I don't believe there is any product that allows you to run ASP on XP Home. You'll have to upgrade to XP Pro or pay for real web hosting service (which is CHEAP now days).

As far as Vista goes, Microsoft's web site says, "Personal Web Server is no longer available in Windows. Instead, use Internet Information Services (IIS)." They give this link.


Wade Myers on 5/12/2009: I am getting Authentication Error for a log in / password form can you explain how to fix?
Richard Rost on 5/18/2009: Wade, this is really a question for your ISP. Check with them to make sure your password is correct.
Benjamin Berks on 5/6/2010: I noticed that the asp commands entered are started with a capital. For example, Response.Write has the R and W capitalized. It is neccessary to capitalize asp commands?

Reply from Richard Rost:

Nope. ASP is NOT case sensitive, either for commands or variables.

response.write is the same as Response.Write

FirstName is the same as firstname

I try to capitalize my variables and commands as much as possible the RIGHT way, because it makes your code more legible. However, when I get lazy (or rushed) I tend to forget that rule. :)

Oh, and it becomes a real pain in the behind if you start adding JAVASCRIPT code to your pages (and you might later on... I do all the time) because Javascript *IS* case sensitive.

Mubeezi Micah on 4/23/2011: Dear Richard,

I wanted to take a go at ASP. However, i cant find Microsoft Front Page on my computer. What i have is Microsoft Office Access, Word, Excel, Groove, OneNote, Powerpoint, InfoPath, Outlook and Pulisher. I checked under Microsoft Works but Front Page is not listed either. What alternatives do i have?

Best regards,

MICAH

Reply from Richard Rost:

FrontPage was a separate product. I think it came with the Office Developer (Ultimate, or whatever other marketing name they gave it) but only up until Office 2003. After that, they moved it to a different suite of products and now call it "Expression Web." FrontPage was discontinued. I still use it though, because I love it.

Your alternatives? Well, you could buy Expression Web. It's a good product. I'm going to be making some tutorials for it this summer. It's very similar to FrontPage. However, in my ASP classes, we focus on writing straight code (HTML and ASP scripts) so you really don't NEED FrontPage. Any web editor will do. If you know how to edit HTML and use an FTP program, that will work too.

 EL on 9/20/2011: If I don't have a website, is there a way I can test my webpages?
Thanks

Reply from Richard Rost:

There are a couple of personal web servers available that you can install on your home PC. I haven't researched them in a while so I can't provide you with any links (check Google). However, you can get dirt cheap web hosting now for under $10 a month from many providers. If you want to set up a web site, that's the way to go.

EL on 9/20/2011: How do I go about setting up my own website?

Reply from Richard Rost:

There are several web hosting providers you can set up an account with. Click here for my recommendations on web providers.

ESTEBANROJAS on 9/28/2012: i could not connect with the server with the www.pcresale.net like the video do you another web page to get the connection when i write <%%> in front page can not recgnize it please help me

Reply from Richard Rost:

I don't understand the question. Can you elaborate please?

Alonzo Dock on 12/21/2014: Which lesson will show me how to submit data from a form into a database

Reply from Alex Hedley:

ASP 301 Should do the trick.

 

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