ASP Basics
Listings
|
|
|
As you learned in the ASP introduction primer, ASP is a server-side technology which means that the server for your website is the sole controller of whether or not
ASP is available to you. ASP is also a product of Microsoft which means it will only run on Microsoft operating systems, however, there is a third party package
that will help you get around this problem. We'll talk about that later.  |
|
|
|
Report
Link
Rate It
Review It
Send To Friend!

|
|
|
Now that you have a platform for running your ASP pages, hopefully, I'll bet you would like to know how the pages are actually processed. Well, it's pretty simple
actually. |
|
|
|
Report
Link
Rate It
Review It
Send To Friend!

|
|
|
Well, actually you already did. The test page code listed above is a fully functional ASP page. So, let's take a closer look at it and see what it is doing.
The first thing you probably noticed were the goofy looking <% and %> tags. Those little guys are ASP's way of telling the server that inside here is some code
that needs to be looked at and processed. Also, did you notice that the ASP tags are sprinkled in and amongst the standard HTML that you are already familiar  |
|
|
|
Report
Link
Rate It
Review It
Send To Friend!

|
|
|
So, what the heck is a DIM...and what DIM-wit came up with the name? Well, DIM actually stands for dimension and is a hold over from the original BASIC
language.
What DIM does is let the computer know what variables you are going to use. The computer needs to know what variables you will use in order to reserve some
space for them.
 |
|
|
|
Report
Link
Rate It
Review It
Send To Friend!

|
|
|
And now on to bigger and better things, the IF .. THEN statement. This will probably be one of the statements that you use the most in VBScript.
The IF .. THEN statement is what is known as a conditional statement. In other words, when some condition is met (or not met for that matter) then something
happens. Boiled down to its simplest form, that is programming in a nutshell. It is simply a series of events and responses to those events.
 |
|
|
|
Report
Link
Rate It
Review It
Send To Friend!

|
|
|
Now that you have an idea of how conditional statements work we'll throw out another one to you, the CASE statement. The CASE statement is very much akin to
the IF .. THEN.
For our example of the CASE statement we're going to give you a practical example. Whenever possible we'll try to give at least one practical example with each
segment of our primer series. Here's your practical example for this segment:
 |
|
|
|
Report
Link
Rate It
Review It
Send To Friend!
