System.Web.UI.WebControls.XmlDataSource.Data Property

Gets or sets a block of XML data that the data source control binds to.

Syntax

[System.ComponentModel.Editor("System.ComponentModel.Design.MultilineStringEditor,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.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerProperty)]
[System.ComponentModel.DefaultValue("")]
public virtual string Data { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

In declarative scenarios, the XmlDataSource.Data property is specified as a multiline inner property of the System.Web.UI.WebControls.XmlDataSource object. An inner property is compatible with XML data, because it enables you to format the XML data in any way and ignore character padding issues, such as padding quote characters.

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.Data property, the System.Web.UI.IDataSource.DataSourceChanged event is raised. If caching is enabled and you change the value of XmlDataSource.Data, 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