|

|
Contents
Learn Active Server Pages.
The author
Symbols and conventions
Disclaimer.
Development of the Internet and the need for integration.
Fig. 1. The generations of web sites
Fig. 2. Integration in the jump from having WWW as an advertising
medium, to having an e-business
Software compatibility
Client-side and Server-side scripting.
What is ASP?
Fig. 3: What happens with an ASP file ?
Personal Web Server 4
Editing ASP files
Ex. A: Simple ASP-script
Ex. B: Execution order in ASP scripts.
Conditional expressions
Ex. C: A dynamic ASP-side.
Concatination
Ex. D: Concatinated variables in strings.
Variables
Ex. E: Writing variables to HTML code and using integer (whole
number) variables.
Overview: Types of variables
Overview: Types of operators
Starting Forms
Ex. F: Writing information into a form field, recovering it again
with Request.Form and printing it to the browser with Response.Write.
The ASP Object Model
Branching
Ex. G: Using nested IF statements (one inside the other) with
AND to check if several criteria are true.
Ex. H: Mixing IF and SELECT
Ex. I: Using FOR NEXT to make a variable with changing value
and insert that into HTML.
Ex. J: Writing all the elements in the collection "server
variables"
Validating a Form Submission
Ex. K: In this script variables are declared using Dim and Option
Explicit and used to check the content of a text string.
Changing variable types
Ex. L: Changing variables from text to numbers and back again.
Conversion with JavaScript
Ex. M: Calling a JavaScript function from VBScript and using
it for server-side variable conversion
Sending variables between files
Ex. N: In this Ex. we create two files. In the first (.htm) file
the data is typed in then sent via a FORM to a second (.asp)
file.
The Form Methods POST and GET
Home Exercise 1: This should take you a whole day
Arrays
Ex. O: A simple array
Home Exercise 2: This should take you a whole day
Cookies
Ex. P: Writing information to a cookie
Applications and Sessions
A password-protected log on side.
Ex. Q: Log on using session variables and an included (.inc)
file.
Debugging
Option Explicit
Structured code and comments
Variable names
Response.Write (and debug.inc)
On Error Resume Next
ASP and databases.
Setting up an ODBC - Open Data Base Connectivity - Connection
Ex. R1: Using DSN to show the content of a database in HTML.
Ex. R2: Searching a database without DSN - using a DSN-less connection
Widening your search with the SQL joker sign %
Ex. S: Inserting data into a database using Request.Form and
INSERT.
Ex. T: Removing data from a database using the URL method and
Request.QueryString.
Ex. U: Updating a database.
Ex. V: Retrieving data from several tables using JOIN.
Ex. W: How to find out how many rows there are in a database
- returning variables
Resume of some useful commands in SQL - Structured Query Language
File System Object Log-file
Ex. X: Visitor data, who are they and what platform are they
using ?
Ex. Y: A visitor counter, an introduction to Constants.
Proceedures
Functions.
SubProceedures
Ex. Z: Use of Proceedures.
Appendix A
Extending ASP over the borders of MS Internet Information Server
Appendix B:
The Object Model:
Objects:
The Object Model, a graphical overview
Request object: Collections, Properties & Methods
Collection
Properties
Methods
Response object: Collection, Properties & Methods
Collection
Properties
Methods
Application Objects
Methods
Events
String Constants
String Functions
Date/Time Functions
Further information on the Net
Standard Sources & Info
Other Interesting Sites |