ASP Getting Started tutorials-server Objects Overview and properties

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.