Home
Active Server Pages (ASP)
ASP Objects
There are six built-in objects in ASP. These are:
  • Request – retrieving/accepting information from browser
  • Response – responsible for sending information to client
  • Server – responsible for administrative functionality of server
  • Session – for managing information for a specific user session
  • Application – manages all information in the ASP application
  • ObjectContext – manage transaction process for components managed by MS Transaction Server
Object Methods
Each of the built-in objects has methods which may be called. These are:

Object: Method: Definition:
  Request
.BinaryRead Reads data returned by the client in form POST request
.ClientCertificate Collection of client certificate fields
.Cookies Collection of cookies sent as part of a request
.Form Collection of form elements
.Item
.QueryString Collection of QueryString values
.ServerVariables Collection of environment values
.TotalBytes Number of bytes the client will return in the Request body
  Response
.AddHeader Adds to HTTP header
.AppendToLog Adds a string to the end of web server log entry for this Request
.BinaryWrite Writes content without any character conversion
.Buffer Indicates whether page output is buffered
.CacheControl HTTP cache-contol header
.CharSet HTTP character set header
.Clear Erases buffered content
.ContentType HTTP content type
.Cookies Collection of cookies sent as part of the Response
.End Causes Active Server Pages to stop processing and return buffered output
  Server
.CreateObject Creates an instance of a server component
.HTMLEncode Applies HTML encoding to specified string
.MapPath Maps relative or virtual path to physical directory on the server
.ScriptTimeout Time in seconds before a script is terminated
.URLEncode Applies URL QueryString encoding rules to a specified string
.URLPathEncode Applies URL path encoding rules to a specified string
  Session
.Abandon Destroys session object and releases its resources
.CodePage Code page used when writing text to – or reading text from – the browser
.LCID The LCID used when writing text to – or reading text from – the browser
.SessionID Returns Session ID for this user
.StaticObject Collection of Static Objects associated with this session
.Timeout Time in minutes before session state is destroyed after non-use
.Value
  Application
.Contents Contents associated with the Application
.Lock Prevents other Active Server Pages from modifying the Application object
.StaticObjects Collection of Static Objects associated with Application
.UnLock Allows other Active Server Pages to modify the Application object
.Value