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  

News      User Comments     History     Notify Me

Active Server Pages 101
By Richard Rost   Richard Rost on Facebook Richard Rost on Twitter Richard Rost on Google Plus Richard Rost on LinkedIn Email Richard Rost

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/

Permanent Link
Course Link: Active Server Pages 101
Keywords: asp active server pages if then else html tags variable loop math input form querystring
Post Reply

could not connect with the server Comment from ESTEBANROJAS @ 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?
Show Just This Thread        Post Reply
Active Server Pages 101 Comment from EL @ 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.
Show Just This Thread        Post Reply
Comment from  EL @ 9/20/2011
If I don't have a website, is there a way I can test my webpages?

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.
Show Just This Thread        Post Reply
Comment from Mubeezi Micah @ 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,


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.
Show Just This Thread        Post Reply
Comment from Benjamin Berks @ 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.
Show Just This Thread        Post Reply
Comment from Richard Rost @ 5/18/2009
Wade, this is really a question for your ISP. Check with them to make sure your password is correct.
Show Just This Thread        Post Reply
Comment from Wade Myers @ 5/12/2009
I am getting Authentication Error for a log in / password form can you explain how to fix?
Show Just This Thread        Post Reply
Comment from Richard Rost @ 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.

Show Just This Thread        Post Reply
Comment from James WIse @ 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?
Show Just This Thread        Post Reply
Comment from Richard Rost @ 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.
Show Just This Thread        Post Reply
Comment from  Larry Kates @ 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
Show Just This Thread        Post Reply
Comment from  Larry Kates @ 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?
Show Just This Thread        Post Reply
Comment from Larry Kates @ 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.
Show Just This Thread        Post Reply
Comment from Larry Kates @ 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?
Show Just This Thread        Post Reply

Add Your Comments or Subscribe
If you just want to subscribe to get email updates when the News is updated, then enter your name and email address and check the Notify Me box below. If you would optionally like to add your comments below to be posted, they are welcome.
  Your Name:  Required
  Your Email:  NOT Public


Sorry about this step. It's just to keep the spam bots away:
  Verify: What is 7+5:
  Notify me when the News is updated.
  Remember Me for my next comments
Please do not use this form for Customer Service inquiries! If you have questions about your account, shipping info, courses you've ordered, need passwords, etc. please use the Customer Service Center instead.

I value your comments. They will be displayed on this page (above). Your name will be displayed, but your email address will not be.
As always, I promise to never give away your personal information to anyone else, ever.

NOTE: If you don't leave your name and email address, DON'T expect a reply. I can't promise a personal reply to everyone who posts here. I TRY my best, but I cannot guarantee it. If you don't leave your real name and email address, I won't even bother. I usually just hit DELETE. -Richard



Visual Basicindex
Account Login
Online Theater
Lost Password
Free Upgrades
Insider Circle
Student Databases
Change Email
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search Our Site
Waiting List
Production Schedule
Collapse Menus
Live Chat
Customer Support
WalkThru Tutorials
Consulting Services
About Us
Affiliate Program
Richard Rost
Free Lessons
Mailing List
Video Tutorials
MYOLP Memberships
Idiot's Guide to Excel
Volume Discounts
Payment Info
Terms of Sale
Gift CDs
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