asp.net.ph

DataListCommandEventArgs Class

System.Web.UI.WebControls Namespace


Provides data for the command events of a DataList.

DataListCommandEventArgs Class Members

Collapse   Constructors

Visibility Constructor Parameters
public DataListCommandEventArgs ( DataListItem item , Object commandSource , CommandEventArgs originalArgs )

Collapse   Properties

Visibility Name Value Type Accessibility
public CommandSource Object [ Get ]
public Item DataListItem [ Get ]

Remarks

The DataListCommandEventArgs provides event data for the following command events of a DataList.

The generic ItemCommand event is raised whenever any button associated with an item in the DataList is clicked. This provides for programmatically determining which specific command button is clicked and take appropriate action. This event is commonly used to handle custom command buttons for the DataList control.

In addition, a CancelCommand, DeleteCommand, EditCommand, or UpdateCommand event is raised whenever the corresponding cancel, delete, edit, or update button associated with an item in the DataList is clicked.

For a list of initial property values for an instance of DataListCommandEventArgs, see the DataListCommandEventArgs constructor.

For more information about handling events, see Web Forms Events Model.

Example

The following example demonstrates how to specify and code a handler for the ItemCommand event to display additional information about the currently selected item in the DataList.

 Show me 

See Also

DataList   DataListCommandEventHandler   CancelCommand   DeleteCommand   EditCommand   ItemCommand   UpdateCommand Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph