//------------------------------------------------------------------------------ // // Copyright (c) Microsoft Corporation. All rights reserved. // //------------------------------------------------------------------------------ namespace System.Web.UI.WebControls { public interface IButtonControl { /// /// Gets or sets whether pressing the button causes page validation to fire. /// bool CausesValidation { get; set; } /// /// Gets or sets an optional argument that is propogated in /// the command event with the associated CommandName /// property. /// string CommandArgument { get; set; } /// /// Gets or sets the command associated with the button control that is propogated /// in the command event along with the CommandArgument property. /// string CommandName { get; set; } /// /// Represents the method that will handle the Click event of a button control. /// event EventHandler Click; /// /// Represents the method that will handle the Command event of a button control. /// event CommandEventHandler Command; /// /// Gets or sets the target url associated with the button control. /// string PostBackUrl { get; set; } /// /// The text for the button. /// string Text { get; set; } /// /// The name of the validation group for the button. /// string ValidationGroup { get; set; } } }