Latest web development tutorials

ASP Server Object

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


Examples

Try - Example

This file was last modified time?
Last modified probe files.

Open and read a text file
Open the file "Textfile.txt" for reading.

Homemade hit counter


Server Object

ASP Server object is used to access information about the server's properties and methods. Its properties and methods are described below:

Attributes

属性 描述
ScriptTimeout 设置或返回在一段脚本终止前它所能运行时间(秒)的最大值。

method

方法 描述
CreateObject 创建对象的实例。
Execute 从另一个 ASP 文件中执行一个 ASP 文件。
GetLastError() 返回可描述已发生错误状态的 ASPError 对象。
HTMLEncode 把 HTML 编码应用到某个指定的字符串。
MapPath 把一个指定的路径映射到一个物理路径。
Transfer 把一个 ASP 文件中创建的所有信息发送(传输)到另一个 ASP 文件。
URLEncode 把 URL 编码规则应用到指定的字符串。