SF Bay Area
ASP Intro - San Francisco
Active Server Pages (ASP) are Microsoft's term for dynamic web pages that are evaluated on a computer with a web server and then sent to a web browser.
The Interaction between Client Browser and Web Server
We will show students how a web browser interacts with a web server to retrieve an ASP (Flash). Personal Web Server is a simple web server program used for this exercise. It runs on the common Windows operating systems -- Win98, 95, ME, and NT Workstation. PWS has few configuration options and provides a good introduction to web servers. Students will be shown how to find the file responsible for interpreting ASP pages, used in conjunction with PWS.
Setting and Outputting Variables in VBScript
ASP has a special syntax for setting and accessing variables' values. Your code (VBScript instructions) will assign string and numeric values to variables and perform basic string and numeric operations on these variables. We will train you in both minimal, and proper, coding practices using VBScript within an ASP.
Whethere you're dealing with text or numeric data, there are many "functions" that allow you to manipulate that data. For example, there is a function that calculate the square root of a number; conversely, for text data, there is a function that calculates the number of characters in a sentence. Using training exercises we will show you the most useful functions for dealing with text and numeric data in an ASP.
If-Else Conditional Structures
You will learn how to execute different sections of your code depending on whether a variable is equal to a particular value, or, alternatively, how to execute some failsafe code in case no conditions are met.
To iterate through a sequence of instructions, you can use one of several looping constructs. We will demonstrate the basics of the For-Next, While, and For-Each loops. You will also see an example of a nested loop, where some VBScript instructions are repeatedly executed inside another set of instructions that is also repeatedly processed; this technique is used, for example, to populate individual HTML table cells while looping around the code that populates the HTML table rows.
Retrieving Submitted HTML Form Data - email example
With a training exercise we will show you how to pass HTML form data and URL-appended variables to a page that error-checks and outputs them. We will also demonstrate how to use a "ForEach loop" to iterate through all the submitted form variables and output their values without knowing their names beforehand.
Creating and Using VBScript Objects
VBScript offers many functions which are only accessible through the creation of "objects". Using a particular syntax, your script can create and use these objects to send email or save text to a file on the hard drive. You will learn about object properties and methods (things you can do with the object). In particular, we'll examine an email object and you'll learn how to programmatically send an email (or a thousand emails if you like!) to a particular address.