asp.net.ph

MenuEventArgs Class

System.Web.UI.WebControls Namespace


.NET Framework version 2.0

Provides data for the MenuItemClick and MenuItemDataBound events of a Menu control.

MenuEventArgs Class Members

Collapse   Constructors

Visibility Constructor Parameters
public MenuEventArgs ( MenuItem item , Object commandSource , CommandEventArgs originalArgs )
public MenuEventArgs ( MenuItem item )

Collapse   Properties

Visibility Name Value Type Accessibility
public CommandSource Object [ Get ]
public Item MenuItem [ Get ]

Remarks

The MenuEventArgs class is used to store the event data passed to an event handler for the events in the following table.

Event Description
MenuItemClick Occurs when a menu item is clicked. This event is commonly used to synchronize a Menu control with another control on the page.
MenuItemDataBound Occurs when a menu item is bound to data. This event is commonly used to modify a menu item before it is rendered in a Menu control.

This allows you to provide an event handler that performs a custom routine whenever any of these events occurs.

Depending on the event raised, you can access the menu item clicked by the user or the menu item being bound to data by using the Item property.

For a list of initial property values for an instance of MenuEventArgs, see the MenuEventArgs constructor.

For more information about handling events, see Web Forms Events Model.

See Also

Menu Members   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