Export (0) Print
Expand All

IButtonControl Interface

Defines properties and events that must be implemented to allow a control to act like a button on a Web page.

Namespace:  System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public interface class IButtonControl

The IButtonControl type exposes the following members.

  NameDescription
Public propertyCausesValidationGets or sets a value indicating whether clicking the button causes page validation to occur.
Public propertyCommandArgumentGets or sets an optional argument that is propagated to the Command event.
Public propertyCommandNameGets or sets the command name that is propagated to the Command event.
Public propertyPostBackUrlGets or sets the URL of the Web page to post to from the current page when the button control is clicked.
Public propertyTextGets or sets the text caption displayed for the button.
Public propertyValidationGroupGets or sets the name for the group of controls for which the button control causes validation when it posts back to the server.
Top

  NameDescription
Public eventClickOccurs when the button control is clicked.
Public eventCommandOccurs when the button control is clicked.
Top

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.5, 4, 3.5, 3.0, 2.0

Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Show:
© 2014 Microsoft