IButtonControl Interface
TOC
Collapse the table of content
Expand the table of content

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 IButtonControl

NameDescription
System_CAPS_pubpropertyCausesValidation

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

System_CAPS_pubpropertyCommandArgument

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

System_CAPS_pubpropertyCommandName

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

System_CAPS_pubpropertyPostBackUrl

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

System_CAPS_pubpropertyText

Gets or sets the text caption displayed for the button.

System_CAPS_pubpropertyValidationGroup

Gets or sets the name for the group of controls for which the button control causes validation when it posts back to the server.

NameDescription
System_CAPS_pubeventClick

Occurs when the button control is clicked.

System_CAPS_pubeventCommand

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
Available since 2.0
Return to top
Show:
© 2016 Microsoft