Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpServerUtility::ScriptTimeout Property

 

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

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
property int ScriptTimeout {
	int get();
	[AspNetHostingPermissionAttribute(SecurityAction::Demand, Level = AspNetHostingPermissionLevel::Medium)]
	void set(int value);
}

Property Value

Type: System::Int32

The time-out value setting for requests.

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.

System_CAPS_noteNote

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

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

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft