Name

DataListCommandEventArgs

Synopsis

The DataListCommandEventArgs class provides more information for the ItemCommand, CancelCommand, 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.

Public NotInheritable Class DataListCommandEventArgs : Inherits CommandEventArgs
' Public Constructors
   Public Sub New(ByVal item As DataListItem, 
        ByVal commandSource As Object, 
        ByVal originalArgs As CommandEventArgs) 
' Public Instance Properties
   Public ReadOnly Property CommandSource As Object  
   Public ReadOnly Property Item As DataListItem  
End Class

Hierarchy

System.ObjectSystem.EventArgsCommandEventArgs DataListCommandEventArgs

Get ASP.NET in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.