ASP Examples
Basics
Variables
Looping to Generate HTML Headings
Creating Time-Based Greetings with Vbscript
Creating Time-Based Greetings with JavaScript
Date/Time Functions (VBScript)
Other Functions (VBScript)
Uppercase or Lowercase Strings
Return Specific Characters from a String
Replace Specific Characters in a String
Return a Specified Number of Characters from a String
Procedures
Calling a Subroutine with VBScript
Calling a Subroutine with JavaScript
Calling a Subroutine with VBScript and JavaScript
Forms
Cookies
Response Object
Formatting Text with HTML Tags in ASP
Redirecting the User to a Different URL
Terminating the Script and Returning Results During Processing
Setting the Number of Minutes the Page is Cached Before Expiring in the Browser
Setting the Expiration Date or Time for Page Caching in the Browser
Checking if the User is Still Connected to the Server
Request Object
Simple Application of the QueryString Collection
Getting Information from Forms
Getting More Information from Forms
Simple Application of the Form Collection
How to Use Information from Forms
Getting More Information from Forms
Getting the Visitor's Browser Type, IP Address, or More
Getting All Required Server Variables
Session Object
Server Object
When Was This File Last Modified?
Opening and Reading a Text File
FileSystem Object
Does the Specified File Exist?
Does the Specified Folder Exist?
Does the Specified Drive Exist?
Getting the Name of a Specified Drive
Getting the Name of the Parent Folder of a Specified Path
Getting the Base Name of a File or Folder
TextStream Object
Reading a Line from a Text File
Reading All Lines from a Text File
Skipping a Part of a Text File
Skipping a Line in a Text File
Drive Object
Getting the Available Space of a Specified Drive
Getting the Free Space Capacity of a Specified Drive
Getting the Total Capacity of a Specified Drive
Getting the Drive Letter of a Specified Drive
Getting the Drive Type of a Specified Drive
Getting the File System Information of a Specified Drive
Getting the Path of a Specified Drive
Getting the Root Folder of a Specified Drive Get the serial number of the specified drive
File Object
When was the file created
When was this file last modified
When was this file last accessed
Return the attributes of the specified file
Dictionary Object
Does the specified key exist?
Return an array of all items
Return an array of all keys
Return the value of a specific item
Set a key
Return the number of key/item pairs
AdRotator Component
Simple AdRotator example
Browser Capabilities Component
The type, capabilities, and version number of each browser accessing the website
ContentRotator Component
Content Rotator Component
Content Linking Component
Content Linking Component
Content Linking Component 2