Version

EnableAjaxViewState Property (FlatDataBoundControl)

Gets sets ability to maintain view state of controls on page if their properties were modified while asynchronous postback of this control.
Syntax
'Declaration
 
Public Property EnableAjaxViewState As Boolean
public bool EnableAjaxViewState {get; set;}
Remarks

That property has effect only when asynchronous postback is triggered by this control. Those can be postbacks triggered by AutoPostBackFlags with value "Async", or internal postbacks such as sorting of grid.

If that property is disabled, then properties of any control on page modified while that async postback will be lost after a full postback. Value false will also reduce size of response stream. If that property is enabled, then in some applications the server exception related to EventValidation is possible. If it happens, then application should disable that property or set EnableEventValidation attribute of page to false.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also