RepeaterCommandEventArgs

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 information 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 appropriate type.

It may seem that the Repeater.ItemCommand event provides more than one way to determine its source. However, these references are not equivalent. The sender parameter indicates the Repeater instance where the event took place, while the Item property specifies the item in the Repeater and the CommandSource property identifies the specific button in the item.

public sealed class RepeaterCommandEventArgs : CommandEventArgs { // Public Constructors    public RepeaterCommandEventArgs(RepeaterItem item, object commandSource, CommandEventArgs originalArgs); // Public Instance Properties    public object CommandSource{get; }    public RepeaterItem Item{get; } }

Hierarchy

System.Object System.EventArgs CommandEventArgs RepeaterCommandEventArgs

Passed To

Repeater.OnItemCommand( ), RepeaterCommandEventHandler.{BeginInvoke( ), Invoke( )}



ASP. NET in a Nutshell
ASP.NET in a Nutshell, Second Edition
ISBN: 0596005202
EAN: 2147483647
Year: 2003
Pages: 873

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net