ASP Server Object

## ASP Tutorial

ASP HOME ASP Introduction ASP Install ASP Syntax ASP Variables ASP Procedures ASP Forms ASP Cookies ASP Session ASP Application ASP #include ASP Global.asa ASP Send e-mail

## ASP Objects

ASP Response ASP Request ASP Application ASP Session ASP Server ASP Error ASP FileSystem ASP TextStream ASP Drive ASP File ASP Folder ASP Dictionary ASP ADO

## ASP Components

ASP AdRotator ASP BrowserCap ASP Content Linking ASP Content Rotator

## ASP and AJAX

AJAX Intro AJAX ASP AJAX Database

## ASP Summary

ASP Quick Ref ASP Summary

## ASP Examples

ASP Examples ASP Quiz ASP Certificate

# ASP Server Object

« Previous
Next Chapter »

The Server object is used to access properties and methods on the server.

## Try it Yourself - Examples

When was a file last modified?
Check when a file was last modified.

Open a text file for reading
Open "Textfile.txt" for reading.

Homemade hit counter

## Server Object

The ASP Server object is used to access properties and methods on the server. Its properties and methods are described below:

### Properties

Property | Description
--- | ---
ScriptTimeout | Sets or returns the maximum number of seconds a script can run before it is terminated

### Methods

Method | Description
--- | ---
CreateObject | Creates an instance of an object
Execute | Executes an ASP file from inside another ASP file
GetLastError() | Returns an ASPError object that describes the error condition that occurred
HTMLEncode | Applies HTML encoding to a specified string
MapPath | Maps a specified path to a physical path
Transfer | Sends (transfers) all the information created in one ASP file to a second ASP file
URLEncode | Applies URL encoding rules to a specified string

« Previous
Next Chapter »

## Your suggestion:

Your E-mail (optional):

Page address:

Description:

Close [X]

## Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

## WEB HOSTING

Best Web Hosting UK Reseller Hosting Wow! $5 SSD Hosting

## WEB BUILDING

Download XML Editor
FREE Website BUILDER FREE Website Creator

## WEB RESOURCES

Web Statistics Web Validation

## SHARE THIS PAGE