IButtonControl IButtonControl IButtonControl IButtonControl Interface

Definition

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

public interface class IButtonControl
public interface IButtonControl
type IButtonControl = interface
Public Interface IButtonControl
Derived

Remarks

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.

Properties

CausesValidation CausesValidation CausesValidation CausesValidation

Gets or sets a value indicating whether clicking the button causes page validation to occur.

CommandArgument CommandArgument CommandArgument CommandArgument

Gets or sets an optional argument that is propagated to the Command event.

CommandName CommandName CommandName CommandName

Gets or sets the command name that is propagated to the Command event.

PostBackUrl PostBackUrl PostBackUrl PostBackUrl

Gets or sets the URL of the Web page to post to from the current page when the button control is clicked.

Text Text Text Text

Gets or sets the text caption displayed for the button.

ValidationGroup ValidationGroup ValidationGroup 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.

Events

Click Click Click Click

Occurs when the button control is clicked.

Command Command Command Command

Occurs when the button control is clicked.

Applies to