A bit of attention to the Server.ScriptTimeout attribute in ASP-application techniques

Source: Internet
Author: User
Tags metabase

The server default value for this property is 90, in seconds, and we can output this value through this code:

Copy Code code as follows:

<%
Response.Write Server.ScriptTimeout
Response.Write "Http://www.jb51.net"
%>

Because the default ScriptTimeout value for IIS is 90 seconds (actually set in IIS metabase), we can change this value in our program:
Copy Code code as follows:

<%Server.ScriptTimeOut=100%>

This will be the ASP program to perform the maximum time to 100 seconds, but here is one thing to note, is set the ScriptTimeout value, than the default setting of IIS, which means that if we set the value of ScriptTimeout, <% Server.scripttimeout=60%> will not work, because the default value is 90, the set value can only be larger than 90 if 90 small, then still 90 seconds.
Of course, IIS default 90 seconds can also be changed, specific reference to how to modify the IIS metabase related articles.

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.