System.Web.UI.WebControls.Button: Property Members

The properties of System.Web.UI.WebControls.Button are listed below. For a list of all members, see the Button Members list.

See Also: Inherited members from System.Web.UI.WebControls.WebControl

Public Properties

CausesValidationbool.

Gets or sets a value indicating whether validation is performed when the System.Web.UI.WebControls.Button control is clicked.

CommandArgumentstring.

Gets or sets an optional parameter passed to the Button.Command event along with the associated Button.CommandName.

CommandNamestring.

Gets or sets the command name associated with the System.Web.UI.WebControls.Button control that is passed to the Button.Command event.

OnClientClickstring.

Gets or sets the client-side script that executes when a System.Web.UI.WebControls.Button control's Button.Click event is raised.

PostBackUrlstring.

Gets or sets the URL of the page to post to from the current page when the System.Web.UI.WebControls.Button control is clicked.

Textstring.

Gets or sets the text caption displayed in the System.Web.UI.WebControls.Button control.

UseSubmitBehaviorbool.

Gets or sets a value indicating whether the System.Web.UI.WebControls.Button control uses the client browser's submit mechanism or the ASP.NET postback mechanism.

ValidationGroupstring.

Gets or sets the group of controls for which the System.Web.UI.WebControls.Button control causes validation when it posts back to the server.