
DataListCommandEventHandler | 849
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)
➝
WebControl(System.Web.UI.IAttributeAccessor) ➝ BaseDataList ➝ DataList(System.Web.
UI.INamingContainer, IRepeatInfoUser)
DataListCommandEventArgs
System.Web.UI.WebControls (system.web.dll)
sealed class
The DataListCommandEventArgs class provides more information for the ItemCommand, Cancel-
Command, DeleteCommand, EditCommand, and UpdateCommand events of the DataList control. This
information consists of an Item property identifying the affected DataListItem, and a
CommandSource property that refers to the button or hyperlink that was clicked. You will
have to cast this object to an appropriate type to read its properties.
Hierarchy
System.Object ➝ System.EventArgs ➝ CommandEventArgs ➝
DataListCommandEventArgs
Passed To
DataList.{OnCancelCommand( ), OnDeleteCommand( ), OnEditCommand( ),
OnItemCommand( ), OnUpdateCommand( )}, DataListCommandEventHandler.
{BeginInvoke( ), Invoke( )}
DataListCommandEventHandler
System.Web.UI.WebControls (system.web.dll)
serializable
delegate
This delegate specifies the parameters for the event handler routine that handles the
ItemCommand