Breyta

Deila með


HttpServerUtility.ScriptTimeout Property

Definition

Gets or sets the request time-out value in seconds.

public:
 property int ScriptTimeout { int get(); void set(int value); };
public int ScriptTimeout { get; set; }
member this.ScriptTimeout : int with get, set
Public Property ScriptTimeout As Integer

Property Value

The time-out value setting for requests.

Exceptions

The current HttpContext is null.

The time-out period is null or otherwise could not be set.

Examples

The following example sets the request time-out period to 60 seconds.

Server.ScriptTimeout = 60;

Server.ScriptTimeout = 60
   

Remarks

The ScriptTimeout property can be set in the Web.config file by setting the executionTimeout attribute of the httpRuntime element. Setting the time-out programmatically with the ScriptTimeout property takes precedence over the Web.config setting.

Note

If you set the debug attribute of the httpRuntime element to true in the Web.config file, the value of ScriptTimeout will be ignored.

Applies to