The ASP Server object is used to access methods and properties on the server. The Server object provides a variety of functions such as the ability to execute other ASP pages within a page or map a virtual path on the physical server. The syntax, properties, and methods of the ASP Server object are as follows:
Sets or returns the maximum amount of time, in seconds, that the script in the page can run before it is terminated. The default value is 90 seconds.
Setting the ScriptTimeout Value
Server.ScriptTimeout=value in seconds
Retrieving the value of the ScriptTimeout Property
Creates an instance of the object such as a component, application, or scripting object. Once instantiated, the object’s properties and methods are exposed.
Executes another ASP page from within the ASP page, without leaving the current page.
Returns an ASPError object that describes the error condition that occurred.
Applies HTML encoding to a specified string. All non-legal HTML characters are converted to their equivalent HTML entity.
Maps a specified virtual or relative path to a physical path on the server.
Sends all current state information to another page specified in the URL.
Applies URL encoding rules to a specified string. All characters that are not valid in an URL are converted to their equivalent HTML entity.
Paul is a programming enthusiast who loves to write about all things technical. Whether it's networking, operating systems or programming, Paul enjoys delving into the nuts and bolts of technology and explaining it in a way that everyone can understand. When he's not writing articles for ITGeared.com, Paul likes to spend his time tinkering with computers and playing video games.
Paul is a passionate programmer who enjoys writing about all things technical. He likes getting into the nitty-gritty of technology and describing it in a way that anybody can understand.