Server.ScriptTimeout This attribute gives the maximum time for Asp script execution. If the running time of the asp program exceeds the value specified by this attribute, Asp will report an error.
The server default value of this property is 90, in seconds. We can output this value through code like this:
Copy the code as follows:<%
Response.Write Server.ScriptTimeOut
Response.Write Http://www.vevb.com
%>
Since the default ScriptTimeout value of IIS is 90 seconds (actually set in IIS Metabase), we can Change this value in our program:
Copy the code as follows:
<%Server.ScriptTimeOut=100%>
This changes the maximum execution time of the Asp program to 100 seconds. However, one thing to note here is that the set ScriptTimeOut value is larger than the default setting value of IIS. In other words, if we set the ScriptTimeOut value like this, <%Server.ScriptTimeOut=60%> will not work. , because the default value is 90, the set value can only be larger than 90. If it is smaller than 90, then 90 seconds will still prevail.
Of course, the default 90 seconds of IIS can also be changed. For details, please refer to the related articles on how to modify the IIS Metabase.