Defines properties and events that must be implemented to allow a control to act like a button on a Web page.
Assembly: System.Web (in System.Web.dll)
Public Interface IButtonControl
public interface IButtonControl
public interface class IButtonControl
type IButtonControl = interface end
The IButtonControl type exposes the following members.
| Name | Description | |
|---|---|---|
|
CausesValidation | Gets or sets a value indicating whether clicking the button causes page validation to occur. |
|
CommandArgument | Gets or sets an optional argument that is propagated to the Command event. |
|
CommandName | Gets or sets the command name that is propagated to the Command event. |
|
PostBackUrl | Gets or sets the URL of the Web page to post to from the current page when the button control is clicked. |
|
Text | Gets or sets the text caption displayed for the button. |
|
ValidationGroup | Gets or sets the name for the group of controls for which the button control causes validation when it posts back to the server. |
| Name | Description | |
|---|---|---|
|
Click | Occurs when the button control is clicked. |
|
Command | Occurs when the button control is clicked. |
The IButtonControl interface defines the properties and events that must be implemented to allow a control to act like a button on a Web page.
The members of this interface provide basic button functionality, such as the ability to raise a Click event and a Command event. The PostBackUrl property provides cross-page posting functionality.
Notes to Implementers
Implement this interface in classes that act like button controls on Web pages.
.NET Framework
Supported in: 4, 3.5, 3.0, 2.0Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.