System.Web.UI.WebControls.BaseDataBoundControl.DataSourceID Property

Gets or sets the ID of the control from which the data-bound control retrieves its list of data items.

Syntax

[System.Web.UI.Themeable(false)]
[System.ComponentModel.DefaultValue("")]
public virtual string DataSourceID { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

If the data-bound control has already been initialized (the BaseDataBoundControl.ConfirmInitState method is called or BaseDataBoundControl.OnPagePreLoad(object, EventArgs) event is handled) when you set the BaseDataBoundControl.DataSourceID property, the BaseDataBoundControl.OnDataPropertyChanged method is called, which sets the BaseDataBoundControl.RequiresDataBinding property to true.

This property cannot be set by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.

Requirements

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