Command.ItemCommand Event
Assembly: System.Web.Mobile (in system.web.mobile.dll)
public: event CommandEventHandler^ ItemCommand { void add (CommandEventHandler^ value); void remove (CommandEventHandler^ value); }
/** @event */ public void add_ItemCommand (CommandEventHandler value) /** @event */ public void remove_ItemCommand (CommandEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
When an ItemCommand event handler is defined, the Command control notifies the handler when an item event is generated through user interaction.
Unlike the Click event, the ItemCommand event is bubbled up to the parent controls. The ItemCommand event rendering is device-specific and is discussed in detail in the "Device-Specific Behavior" section of System.Web.UI.MobileControls.Command.
The OnItemCommand event is raised after an OnClick event. In a scenario where you repeat the same set of actions each time a command button is clicked, you can use either the CommandName or CommandArgument property of the Command control to identify which command button the user clicked.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.