System.Web 2.0.0.0 System.Web.UI.WebControls.Adapters.WebControlAdapter

A control derived from the class is bound to a data source and generates its user interface or child control hierarchy by enumerating the items in the data source to which it is bound. is an abstract base class that defines the common characteristics of all controls that can be bound to a data source, such as the and controls. For more information, see .

A modifies the behavior of a for a specific browser or class of browsers, or acts as a filter on some capability. Much of the adaptability in rendering behavior can be encapsulated in the specialized classes that derive from the class. Therefore, it is likely that a single adapter can be used for a number of browser class behaviors or that inclusion of the adaptability in the classes can make the use of a control adapter unnecessary.

Each control has explicit mappings to adapters through the .browser definition files, if there are <controlAdapter> entries in these files. Thus, any access to the property of the uses the object extracted from the .browser definition files to perform the lookup for the mapping of the adapter to control.

During processing, the .NET Framework intercepts calls to the methods of a control that could be browser specific. If a control adapter is attached, the .NET Framework calls the associated adapter methods. For more information, see .

The M:System.Web.UI.WebControls.Adapters.DataBoundControlAdapter.PerformDataBinding(System.Collections.IEnumerable) method binds an enumerable collection to the associated . The property returns a strongly typed reference to the .

Customizes the behavior of a object with which the adapter is associated for specific browser requests.

- Constructor

  The .NET Framework internally constructs a new instance of the class when it creates the corresponding object.

  Initializes a new instance of the class.

  2.0.0.0
- Property
  System.Web.UI.WebControls.DataBoundControl To be added.

  When a object is attached to a control, the .NET Framework calls certain adapter members instead of the control members.

  Retrieves a strongly-typed reference to the object associated with this control adapter.

  2.0.0.0
- Method
  2.0.0.0
  System.Void ``

  The method is called in place of the method when a control adapter is attached to a control derived from the class.

  Typically, an override of iterates through data, creating distinct names and values when necessary, and saves it to an internal collection. Usually, or a similar method of the will populate the user interface or child controls from that internal collection.

  Binds the data in the data source of the associated object to the control adapter.

  An of to be bound to the derived .