System.Web.UI.WebControls


.NET Framework Class Library
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)

Syntax

Visual Basic (Declaration)
Public MustInherit Class BaseDataBoundControl
    Inherits WebControl
Visual Basic (Usage)
Dim instance As BaseDataBoundControl
C#
public abstract class BaseDataBoundControl : WebControl
C++
public ref class BaseDataBoundControl abstract : public WebControl
J#
public abstract class BaseDataBoundControl extends WebControl
JScript
public abstract class BaseDataBoundControl extends WebControl
Remarks

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.

.NET Framework Security

Inheritance Hierarchy

System.Object
   System.Web.UI.Control
     System.Web.UI.WebControls.WebControl
      System.Web.UI.WebControls.BaseDataBoundControl
         System.Web.UI.WebControls.DataBoundControl
         System.Web.UI.WebControls.HierarchicalDataBoundControl
Thread Safety

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

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.

Version Information

.NET Framework

Supported in: 2.0
See Also

Tags :


Page view tracker