System.Web.UI.WebControls.ObjectDataSource.EnableCaching Property

Gets or sets a value indicating whether the System.Web.UI.WebControls.ObjectDataSource control has data caching enabled.

Syntax

[System.ComponentModel.DefaultValue(false)]
public virtual bool EnableCaching { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

The System.Web.UI.WebControls.ObjectDataSource control supports data caching. While data is cached, calls to the ObjectDataSource.Select method retrieve data from the cache rather than the System.Web.UI.WebControls.ObjectDataSource creating an instance of the business object and calling its data method. When the cache expires, the ObjectDataSource.Select method retrieves data from the business object, and then caches the data again.

The System.Web.UI.WebControls.ObjectDataSource control automatically caches data when the ObjectDataSource.EnableCaching property is set to true and the ObjectDataSource.CacheDuration property is set to a value greater than 0, which indicates the number of seconds that the cache stores data before the cache entry is discarded. A value of 0 indicates an infinitely long cache.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0