System.Web.UI.WebControls.XmlDataSource.EnableCaching Property

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

Syntax

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

Value

Documentation for this section has not yet been entered.

Remarks

The System.Web.UI.WebControls.XmlDataSource control automatically caches data when the XmlDataSource.EnableCaching property is set to true. By default, the XmlDataSource.CacheDuration property is set to 0, which indicates an indefinite cache, and the data source will cache data until the XML file that it depends on is changed. If you set the XmlDataSource.CacheDuration property to a value greater than 0, the cache stores data for that many seconds before retrieving a fresh set.

If the XmlDataSource.EnableCaching property is set to true and the XmlDataSource.TransformArgumentList property is set, the cache entries are not automatically invalidated when the parameters change in the transforms argument list. In that case, you must write code to invalidate the cache by setting the XmlDataSource.CacheKeyDependency property.

Requirements

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