ASP.NET Pack Programmer's Guide
Button Members
Constructors Properties Methods Events
 


Represents a customizable button.

The following tables list the members exposed by the Button type.

 Public Constructors

  Name Description

Button

Initializes a new instance of the Button class.

 Public Properties

  Name Description

ActiveImageUrl

Gets or sets the URL of the image to be displayed by the control when it is hovered.

CausesValidation

Gets or sets a value indicating whether validation is performed when the control is clicked.

ClickScript

Gets or sets the name of a JavaScript function that should be invoked when the button is clicked.

ClientScriptMode

Gets or sets a value indicating which library will be used in the control's client-side scripts.

CommandArgument

Gets or sets an optional parameter passed to the Command event.

CommandName

Gets or sets the command name associated with the control.

ControlLoadedScript

Gets or sets the name of a JavaScript function that should be invoked when the control is loaded.

DisplayType

Gets or sets the display type of the control.

Height

Gets or sets the height of the control.

IconPosition

Gets or sets the alignment of the icon.

ImageUrl

Gets or sets the URL of the image to be displayed by the control.

IsThemed

Gets a value indicating the control has its Theme property set to a specified value.

LicenseKey

Gets or sets the license key of the control.

PostBackUrl

Gets or sets the URL to post to when the button is clicked.

Text

Gets or sets the text of the control.

Theme

Gets or sets the theme applied to the control.

UseSubmitBehavior

Gets or sets a value indicating whether the control renders as a submit button.

ValidationGroup

Gets or sets the group of controls for which the control causes validation.

Width

Gets or sets the width of the control.

 Protected Properties

  Name Description

TagKey

WebControl.TagKey override.

 Public Methods

  Name Description

LoadFromXml

Overloaded. Loads control data from an XML file or from a System.Xml.XmlDocument.

SaveToXml

Overloaded. Saves control data to an XML file or to a System.Xml.XmlDocument.

 Protected Methods

  Name Description

GetPostBackOptions

Creates a PostBackOptions object that represents the control's postback behavior.

OnBeginLoad

Raises the BeginLoad event.

OnClick

Raises the Click event.

OnCommand

Raises the Command event.

OnEndLoad

Raises the EndLoad event.

OnPreRender

Control.OnPreRender override.

Render

Control.Render override.

RenderContents

WebControl.RenderContents override.

 Public Events

  Name Description

BeginLoad

Raised when the component starts loading data from a file or memory stream.

Click

Raised when the control is clicked.

Command

Raised when the control is clicked.

EndLoad

Raised when the component ends loading data from a file or memory stream.

 See Also

Button Class
MindFusion.UI.WebForms Namespace