Home page
 
 Home 
 ASP 
 PHP 
 SQL 
 HTML 
 JavaScript 
 Search 
 Contact 
 
Search
or browse popular tags
ASP Tutorial
Subscription

Sign up for the free email newsletter for new tips, tutorials and more. Enter your email address below, and then click the button.

Privacy Policy

RSS Twitter

ASP Server Object

Print

The Server object provides access to properties and methods on the server. Much of functionality it provides is simply functionality the web server itself uses in the normal processing of client requests and server responses. The syntax, properties and methods of the ASP Server object are as follows:

Syntax

Server.property|method

Properties

Properties Description
ScriptTimeout The ScriptTimeout property sets or returns the maximum amount of time (in seconds) that the script in the page can run before it is terminated. If you do not set a value for this property, the default value is 90 seconds.

Methods

Methods Description
CreateObjet The CreateObject method creates an instance of the object (a component, application or a scripting object) and returns a reference to it. Once instantiated, this object's properties and methods can be used just as you can use the properties and methods of the built-in objects that come with ASP.
Execute The Execute method executes another .asp page without leaving the current page. It stops the execution of the current page and transfers control to the page specified in the URL. After that page has finished execution, control passes back to the calling page.
GetLastError The GetLastError method returns an ASPError object that describes the error condition that occurred.
HTMLEncode The HTMLEncode method applies HTML encoding to a specified string. All non-legal HTML characters are converted to their equivalent HTML entity.
MapPath The MapPath method maps a specified virtual or relative path to a physical path on the server.
Transfer The Transfer method stops execution of the current page and sends all current state information to another page specified in the URL. Unlike the Execute method, execution does not resume in the page calling the Transfer method.
URLEncode The URLEncode method applies URL encoding rules to a specified string. All characters that are not valid in an URL are converted to their equivalent HTML entity.




Tags:

Add To: Add to dzone dzone | Digg this digg | Add to del.icio.us del.icio.us | Stumble it stumbleupon

  • Comments





Copyright © 2005-2014             www.WebCheatSheet.com All Rights Reserved.