System.Web.UI.WebControls Namespace FormView Class
.NET Framework version 2.0
Occurs when a button within a FormView control is clicked.
[ VB ]
Public Event ItemCommand As FormViewCommandEventHandler
[ C# ]
public event FormViewCommandEventHandler ItemCommand;
[ C++ ]
public: __event FormViewCommandEventHandler* ItemCommand;
In [ JScript ], you can handle the events defined by a class, but you cannot define your own.
The ItemCommand event is raised whenever any button associated with an item in a FormView control is clicked.
This allows you to provide an event-handling method that performs a custom routine whenever this event occurs.
Information related to the ItemCommand event is passed via a FormViewCommandEventArgs object to the method assigned to handle the event. The following FormViewCommandEventArgs properties provide information specific to this event.
FormView Members