System.Web.UI.Control.OnDataBinding Method

Raises the Control.DataBinding event.

Syntax

protected virtual void OnDataBinding (EventArgs e)

Parameters

e
An EventArgs object that contains the event data.

Remarks

This method notifies a server control to perform any logic for binding data that is associated with it.

If you want to handle the Control.DataBinding event, you should override this event-handling method. This ensures that all delegates attached to the Control.DataBinding event are invoked.

Requirements

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