Page.AsyncMode Property

Definition

Sets a value indicating whether the page is processed synchronously or asynchronously.

C#
protected bool AsyncMode { get; set; }

Property Value

true if the page is processed asynchronously; otherwise, false.

Remarks

The AsyncMode property is set by the Page parser when code for the page is generated. Use the Async attribute in @ Page directive to set this value.

Asynchronous pages do not work when the AspCompat attribute is set to true or the Transaction attribute is set to a value other than Disabled in the @ Page directive.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1