asp.net.ph

DetailsView.ItemCommand Event

System.Web.UI.WebControls Namespace   DetailsView Class


.NET Framework version 2.0

Occurs when a button within a DetailsView control is clicked.

[ VB ]
Public Event ItemCommand As DetailsViewCommandEventHandler

[ C# ]
public event DetailsViewCommandEventHandler ItemCommand;

[ C++ ]
public: __event DetailsViewCommandEventHandler* ItemCommand;

In [ JScript ], you can handle the events defined by a class, but you cannot define your own.

Remarks

The ItemCommand event is raised whenever any button associated with an item in a DetailsView control is clicked.

This allows you to provide an event-handling method that performs a custom routine whenever this event occurs.

Event Data

Information related to the ItemCommand event is passed via a DetailsViewCommandEventArgs object to the method assigned to handle the event. The following DetailsViewCommandEventArgs properties provide information specific to this event.

Property Description
CommandArgument Gets the argument for the command ( inherited from CommandEventArgs )
CommandName Gets the name of the command ( inherited from CommandEventArgs )
CommandSource Gets the source of the command.

See Also

DetailsView Members 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