IButtonControl 接口

定义

定义必须实现的属性和事件以允许控件在网页上的作用就像按钮一样。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
派生

注解

IButtonControl接口定义必须实现的属性和事件,以允许控件像网页上的按钮一样操作。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.

此接口的成员提供基本按钮功能,如能够引发 Click 事件和 Command 事件。The members of this interface provide basic button functionality, such as the ability to raise a Click event and a Command event. PostBackUrl属性提供跨页面的发布功能。The PostBackUrl property provides cross-page posting functionality.

实施者说明

在类中实现此接口,这些类的作用类似于网页上的按钮控件。Implement this interface in classes that act like button controls on Web pages.

属性

CausesValidation

获取或设置指示单击按钮是否会导致发生页验证的值。Gets or sets a value indicating whether clicking the button causes page validation to occur.

CommandArgument

获取或设置传播到 Command 事件的可选参数。Gets or sets an optional argument that is propagated to the Command event.

CommandName

获取或设置传播到 Command 事件的命令名称。Gets or sets the command name that is propagated to the Command event.

PostBackUrl

获取或设置单击按钮控件时从当前页发送到的网页的 URL。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.

事件

Click

在单击按钮控件时发生。Occurs when the button control is clicked.

Command

在单击按钮控件时发生。Occurs when the button control is clicked.

适用于