BaseDataBoundControl Class

Note: This class is new in the .NET Framework version 2.0.

Serves as the base class for controls that bind to data using an ASP.NET data source control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public abstract class BaseDataBoundControl : WebControl
public abstract class BaseDataBoundControl extends WebControl
public abstract class BaseDataBoundControl extends WebControl

ASP.NET supports a controls architecture that enables Web server controls to bind to data in a consistent fashion. Web server controls that bind to data are referred to as data-bound controls, and the classes that facilitate that binding are called data source controls. Data-bound controls that are designed to use ASP.NET data source controls derive from the BaseDataBoundControl control class, which defines the base data-bound control functionality.

You can use the data-bound controls that are provided with ASP.NET, including GridView, DetailsView, and TreeView, to perform most Web development tasks that involve displaying data. In scenarios in which these controls do not provide the functionality you need, you can inherit from the base DataBoundControl and HierarchicalDataBoundControl classes to implement your own custom data source control.

While any class that supports the DataSource and DataSourceID properties and the DataBind method is a data-bound control, most ASP.NET data-bound controls extend the abstract BaseDataBoundControl and DataBoundControl classes. Notable exceptions include DataGrid, Repeater, and the DropDownList controls. For more information about data binding, see Web Page Data Binding Techniques.

  • AspNetHostingPermission  For operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
  • AspNetHostingPermission  For operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0