HttpServerUtility.ScriptTimeout Property
.NET Framework 3.0
Gets and sets the request time-out value in seconds.
Namespace: System.Web
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
| Exception type | Condition |
|---|---|
| The current HttpContext is a null reference (Nothing in Visual Basic). | |
| The time-out period is a null reference (Nothing in Visual Basic) or otherwise could not be set. |
The ScriptTimeout property can be set in the Web.config file by setting the executionTimeout attribute of the httpRuntime Element (ASP.NET Settings Schema). Setting the time-out programmatically with the ScriptTimeout property takes precedence over the Web.config setting.
Note: |
|---|
| If you set the debug attribute of compilation Element (ASP.NET Settings Schema) to false in the Web.config file, the value of ScriptTimeout will be ignored. |
- SecurityPermission for operating in a hosted environment. Demand value: LinkDemand. Permission value: Medium
Community Additions
ADD
Show:
Note: