System.Web.UI.Design.TextDataBindingHandler.DataBindControl Method

Data-binds the specified control.

Syntax

public override void DataBindControl (System.ComponentModel.Design.IDesignerHost designerHost, System.Web.UI.Control control)

Parameters

designerHost
An object implementing System.ComponentModel.Design.IDesignerHost for the document that contains the control.
control
The System.Web.UI.Control to data-bind.

Remarks

The TextDataBindingHandler.DataBindControl(System.ComponentModel.Design.IDesignerHost, System.Web.UI.Control) method of System.Web.UI.Design.TextDataBindingHandler sets the Text property of the control, if it exists, to a sample data string.

This method should be implemented in a derived class to provide functionality to a custom data-binding handler. The logic for the data-binding should be implemented within this method, and can be specific to the type or types that the handler is binding a property or properties on.

Requirements

Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0