System.Web.UI.WebControls.DataList.ItemCommand Event

Occurs when any button is clicked in the System.Web.UI.WebControls.DataList control.

Syntax

public event DataListCommandEventHandler ItemCommand

Remarks

The DataList.ItemCommand event is raised when any button is clicked in the System.Web.UI.WebControls.DataList control and is commonly used when you have a button control with a custom CommandName value.

For more information about handling events, see How to: Consume Events in a Web Forms Application.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0