Latest web development tutorials

ASP ScriptTimeout property

Server Object Reference Complete Server Object Reference

ScriptTimeout property sets or returns the maximum number of seconds a script can run before it is terminated.

grammar

Server.ScriptTimeout[=NumSeconds]

参数 描述
NumSeconds 脚本在被终止前可运行的最大秒数。默认是 90 秒。

Examples

Example 1

Set the timeout script:

<%
Server.ScriptTimeout=200
%>

Example 2

ScriptTimeout property to retrieve the current value:

<%
response.write(Server.ScriptTimeout)
%>


Server Object Reference Complete Server Object Reference