List.ItemCommand Event
Assembly: System.Web.Mobile (in system.web.mobile.dll)
public: event ListCommandEventHandler^ ItemCommand { void add (ListCommandEventHandler^ value); void remove (ListCommandEventHandler^ value); }
/** @event */ public void add_ItemCommand (ListCommandEventHandler value) /** @event */ public void remove_ItemCommand (ListCommandEventHandler value)
In JScript, you can handle the events defined by a class, but you cannot define your own.
Not applicable.
When you render a list by using templates, the ItemCommand event handler is called through the event-bubbling mechanism of ASP.NET. The event handler is passed an argument of type ListCommandEventArgs, which contains information about the source item and the CommandName property of the control that generated the event. This allows you to render a single list item with multiple associated interactions.
On default rendering, the control provides a basic user interface (UI) that allows the user to click list items. On postback, the ItemCommand event handler is called with an argument of type ListCommandEventArgs, which contains information about the source item. The CommandName property of this object is a null reference (Nothing in Visual Basic).
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.