System.Web.UI.WebControls.XmlDataSource.DataFile Property

Specifies the file name of an XML file that the data source binds to.

Syntax

[System.ComponentModel.Editor("System.Web.UI.Design.XmlDataFileEditor, System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.Drawing.Design.UITypeEditor, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
[System.ComponentModel.DefaultValue("")]
public virtual string DataFile { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If both the XmlDataSource.DataFile and XmlDataSource.Data properties are set, the XmlDataSource.DataFile property takes precedence and the data in the XML file is used instead of the XML data specified in the XmlDataSource.Data property.

If you change the value of the XmlDataSource.DataFile property, the System.Web.UI.IDataSource.DataSourceChanged event is raised. If caching is enabled and you change the value of XmlDataSource.DataFile, the cache is invalidated.

Requirements

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