Easy Tutorial
❮ Coll Querystring Prop Path Drive ❯

ASP Examples

Basics

Writing Text with ASP

Adding HTML to Text

Variables

Declaring Variables

Declaring Arrays

Looping to Generate HTML Headings

Creating Time-Based Greetings with Vbscript

Creating Time-Based Greetings with JavaScript

Date/Time Functions (VBScript)

Date and Time

Get the Name of the Day

Get the Name of the Month

Get Today's Month and Day

Countdown to the Year 3000

Calculate N Days from Today

Formatting Date and Time

Is This a Date?

Other Functions (VBScript)

Uppercase or Lowercase Strings

Trim Whitespace from Strings

How to Reverse a String?

Rounding Numbers

A Random Number

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

Form with method="get"

Form with method="post"

Form with Radio Buttons

Cookies

Welcome Cookie

Response Object

Writing Text with ASP

Formatting Text with HTML Tags in ASP

Redirecting the User to a Different URL

Displaying a Random Link

Controlling Caching

Clearing the Cache

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

Setting the Content Type

Setting the Character Set

Request Object

Passing Parameters via URL

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

Form with Radio Buttons

Form with Checkboxes

Getting the Visitor's Browser Type, IP Address, or More

Getting All Required Server Variables

Welcome Cookie

Total Bytes Sent by the User

Session Object

Returning the SessionID

Session Timeout

Server Object

When Was This File Last Modified?

Opening and Reading a Text File

Custom Hit Counter

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 File Extension

Getting the Base Name of a File or Folder

TextStream Object

Reading a Text File

Reading a Part of a Text File

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

Returning the Number of Lines

Getting the Column Number

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

Is the Drive Ready?

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

❮ Coll Querystring Prop Path Drive ❯