HttpServerUtility::ScriptTimeout Property
.NET Framework (current version)
Gets and sets the request time-out value in seconds.
Assembly: System.Web (in System.Web.dll)
public: property int ScriptTimeout { int get(); [AspNetHostingPermissionAttribute(SecurityAction::Demand, Level = AspNetHostingPermissionLevel::Medium)] void set(int value); }
| Exception | Condition |
|---|---|
| HttpException | The current HttpContext is null. |
| ArgumentOutOfRangeException | The time-out period is null or otherwise could not be set. |
The ScriptTimeout property can be set in the Web.config file by setting the executionTimeout attribute of the 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 element to true in the Web.config file, the value of ScriptTimeout will be ignored. |
.NET Framework
Available since 1.1
Available since 1.1
Show:
