Overview of Server Objects
Server objects allow you to use many of the advanced features on your servers. Using the server object, you can create a variety of server component instances to enable access to the database for file input and output, and to automatically rotate the display of advertising images on a Web page: Using the server feature, you can also complete calls to ASP scripts, Tasks such as handling HTML and URL encoding and obtaining path information for server objects. The server object accesses the Web server through properties and methods to manage data, Web pages, external objects, and components.
Properties of the server object
The server object supports only one ScriptTimeout property, which specifies the time-out value, which is timed out when the script runs longer than the specified time. The syntax format is as follows:
Server.ScriptTimeout=指定的值
Note: The settings for the ScriptTimeout property must be set before the ASP program, otherwise it will be invalid.
Instance one: Set the ScriptTimeout property value to 100 and display the maximum time that an ASP program is allowed to run in the browser. The code is as follows:
<%Server.ScriptTimeout=100%>
<body>
<div align="center"><font size="7" face="华文彩云" color="red">
对象的ScriptTimeout属性的应用<p>
<% Response.write "此页面运行的最长时间为" & Server.ScriptTimeout & "秒。<p>" %>
<a href="4-4-1.asp">返回教材</a></font>
</center>
</body>
See the full set of ASP Getting started tutorials