
RepeaterCommandEventArgs | 877
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)
➝
Repeater(System.Web.UI.INamingContainer)
RepeaterCommandEventArgs
System.Web.UI.WebControls (system.web.dll)
sealed class
This class provides additional information for the ItemCommand event of the Repeater
control, which occurs when a button in an item is clicked. This additional informa-
tion consists of a Item property, which represents the repeater item where the button is
located, and a CommandSource property, which refers to the button in the item that fired
this event. Before using the CommandSource property, you will have to cast it to the appro-
priate type.
It may seem that the Repeater.ItemCommand event provides more than one way to deter-
mine its source. However, these references are not equivalent. The sender parameter
indicates the Repeater instance where the event took place, while the Item property speci-
fies the item in the Repeater and the CommandSource property identifies the specific button
in the item.
public virtual string DataMember{set; get; }
public virtual object DataSource{set; get; }
public virtual ITemplate FooterTemplate{set; get; }