System.Web.UI.WebControls.Menu.OnDataBinding Method

Raises the System.Web.UI.Control.DataBinding event.

Syntax

protected override void OnDataBinding (EventArgs e)

Parameters

e
A System.Web.UI.WebControls.MenuEventArgs that contains the event data.

Remarks

The System.Web.UI.Control.DataBinding event is raised when data is bound to the System.Web.UI.WebControls.Menu control. This method notifies the control to perform any data-binding logic that is associated with it.

The Menu.OnDataBinding(EventArgs) method allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

This method is generally used by control developers when extending the System.Web.UI.WebControls.Menu class.

Raising an event invokes the event handler through a delegate. For more information, see Events and Delegates.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0