asp.net.ph

Menu.MenuItemDataBound Event

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.

Remarks

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.

Event Data

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.

Property Description
CommandArgument Gets the argument for the command ( Inherited from CommandEventArgs ).
CommandName Gets the name of the command ( Inherited from CommandEventArgs ).
CommandSource Gets the object that raised the event.
Item Gets the menu item associated with the event raised.

See Also

Menu Members   MenuEventArgs   MenuEventHandler Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph