System.Web.UI.WebControls Namespace Menu Class
.NET Framework version 2.0
Occurs when a menu item in a Menu control is bound to data.
[ VB ]
Public Event MenuItemDataBound As MenuEventHandler
[ C# ]
public event MenuEventHandler MenuItemDataBound;
[ C++ ]
public: __event MenuEventHandler* MenuItemDataBound;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The MenuItemDataBound event is raised whenever a menu item is bound to data in a Menu control.
This allows you to provide an event handler that performs a custom routine, such as adding custom content or modifying a menu item before it is rendered, whenever this event occurs.
For more information about handling events, see Web Forms Events Model.
The method assigned to handle the event is passed an argument of type MenuEventArgs object containing data related to this event. The following MenuEventArgs properties provide information specific to this event.
Menu Members MenuEventArgs MenuEventHandler