What is Server-Side Scripting?
The Active Server Pages Model
A Brief History of Hypertext
Linked Static Content
Dynamic HTML
Active Server Pages
Writing Active Server Pages Scripts
What is an Asp File?
What is a Script?
ASP Syntax
Delimiters
The Equal Sign
Single Expressions
Statements
Including HTML in a Statement
Script Tags
Including Other Files
Using a Server Script to Modify a Client Script
Using Scripting Languages
Setting the Primary Scripting Language
Languages that support the Object.Method Syntax
Languages that do not support the Object.Method Syntax
Writing Procedures with Multiple Languages
Creating Procedures
Calling Procedures
Using VBScript and JScript
Including Comments
Working with Objects
Object Syntax
Using Methods
Using Properties
Getting Information from a User
Getting Information From HTML Forms
Using the QueryString Collection
Using the Form Collection
Using the ServerVariables Collection
Posting Input to the Originating ASP page
Using the Cookies Collection
Sending Information to the User
Sending Text to the User
Redirecting the User to Another URL
Setting the HTTP Content Type
Buffering Response
Working with Components
Creating a Reference to an ActiveX Server Component
Retrieving Data from a Database
Displaying Advertisements on a Page
Determining Browser Capability
Reading from and Writing to Files
Managing Sequential and Application Objects
Using the Session and Application Objects
Using the Global Reference File
Application- and Session-Starting Events
Application- and Session-Ending Events
Managing Sessions
Managing Applications
Creating Session-Scope or Application-Scope Component Instances
Configuring Registry Entries
Active Server Pages Registry Entries
Debugging Active Server Page Scripts
Error Handling with VBScript
The On Error Resume Next Statement
The For...Each Statement
Error Handling with JScript
Debugging Forms
Setting Security Permissions
Working with Script Access Security
Securing your Database
SSL3
Active Server Pages Tutorial Overview
Module 1: Creating ASP Pages
Lesson 1: Creating a Simple ASP Page
Create and save a page
Lesson 2: Creating an HTML Form
Create the ASP Response Page
Module 2: Using ActiveX Server Components
Lesson 1: Using the Ad Rotator Component
Create the ad file
Create the script
On Your Own
Lesson 2: Using the Browser Capabilities component
Create the Script
Lesson 3: Using the Database Access Component
Identify the database
Create the component instance
Display the returned result set
On your own
Module 3: Writing Your Own ActiveX Server Components
Lesson 1: Creating the Finance Component
Start Visual Basic
Learn More About Visual Basic Finance Functions
Name the Project
Remove the default form
Add the Finance Class to the Project
Add the CalcFV Function to the Finance class
Add the Component's Entry Point
Save the Finance Project
Make the Component an In-Process Component
Register the Finance Server Component
Lesson 2: Calling the Finance Component From a Script
The HTML form
The script
Using your browser to run the test
Object Reference
Application Object
Application Methods
Lock
Unlock
Request Object
Request Collections
ClientCertificate
Cookies
Form
QueryString
ServerVariables
Response Object
Response Collections
Cookies
Response Properties
Buffer
ContentType
Expires
ExpiresAbsolute
Status
Response Methods
AddHeader
AppendToLog
BinaryWrite
Clear
End
Flush
Redirect
Write
Server Object
Server Properties
ScriptTimeout
Server Methods
CreateObject
HTMLEncode
MapPath
URLEncode
Session Object
Session Properties
SessionID
Timeout
Session Methods
Abandon
Global File Reference
Application Events
Application_OnStart
Application_OnEnd
Session Events
Session_OnStart
Session_OnEnd
Declarations
Component Reference
Advertisement Rotator Component
Rotator Schedule File
Redirection File
Advertisement Rotator Properties
Border
Clickable
TargetFrame
Advertisement Rotator Methods
GetAdvertisement
Browser Capabilities Component
BROWSCAP.INI File
Database Access Component
Content Linking Component
Content Linking List File
Content Linking Methods
GetListCount
GetListIndex
GetNextDescription
GetNextURL
GetNthDescription
GetNthURL
GetPreviousDescription
GetPreviousURL
TextStream Component
Creating ASP Components
Page-level Event Methods
OnStartPage
OnEndPage
Built-in Object Interfaces
IScriptingContext
IScriptingContext::get_Request
IScriptingContext::get_Response
IScriptingContext::get_Server
IScriptingContext::get_Session
IScriptingContext::get_Application
IRequestDictionary
IRequestDictionary::get_Item
IRequestDictionary::get__NewEnum
IRequest
IRequest::get_Item
IRequest::get_QueryString
IRequest::get_Form
IRequest::get_Body
IRequest::get_ServerVariables
IRequest::get_Cookies
IResponse
IResponse::get_ContentType
IResponse::put_ContentType
IResponse::get_Status
IResponse::put_Status
IResponse::get_Expires
IResponse::put_Expires
IResponse::get_ExpiresAbsolute
IResponse::put_ExpiresAbsolute
IResponse::get_Buffer
IResponse::put_Buffer
IResponse::get_Cookies
IResponse::Write
IResponse::BinaryWrite
IResponse::WriteBlock
IResponse::Redirect
IResponse::AddHeader
IResponse::Add
IResponse::Clear
IResponse::Flush
IResponse::End
IResponse::AppendToLog
ISessionObject
ISessionObject::get_SessionID
ISessionObject::get_Value
ISessionObject::put_Value
ISessionObject::putref_Value
ISessionObject::get_Timeout
ISessionObject::put_Timeout
ISessionObject::Abandon
IApplicationObject
IApplicationObject::get_Value
IApplicationObject::put_Value
IApplicationObject::putref_Value
IApplicationObject::Lock
IApplicationObject::UnLock
IServer
IServer::get_ScriptTimeout
IServer::put_ScriptTimeout
IServer::CreateObject
IServer::MapPath
IServer::HTMLEncode
IServer::URLEncode
Code Examples
Writing Text to an HTML Page
Retrieving a Variable from a Built-in Object
Retrieving an Item from a Collection
Threading Model
Packaging Model
Type Information
Additional Resources