A newer version of this page is available.
Switch to the current version.
BootstrapButton Class
Represents the button control.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v18.2.dll
Declaration
[ToolboxTabName("DX.18.2: Bootstrap Controls")]
[DXClientDocumentationProviderWeb("BootstrapButton")]
public class BootstrapButton :
ASPxButton,
ISimpleRenderControl,
IBSBadgeOwner
<ToolboxTabName("DX.18.2: Bootstrap Controls")>
<DXClientDocumentationProviderWeb("BootstrapButton")>
Public Class BootstrapButton
Inherits ASPxButton
Implements ISimpleRenderControl,
IBSBadgeOwner
Remarks
NOTE
The BootstrapButton control provides you with comprehensive client-side functionality implemented using JavaScript code (see DevExpress.Web.Bootstrap.Scripts to learn more):
- The control's client-side equivalent is represented by the BootstrapClientButton object.
- On the client side, the client object can be accessed directly by the name specified via the ASPxButton.ClientInstanceName property.
- The available client events can be accessed by using the ASPxButton.ClientSideEvents property.
The control's client-side API is enabled if the ASPxButton.EnableClientSideAPI property is set to true, or the ASPxButton.ClientInstanceName property is defined, or any client event is handled.
Examples
This example demonstrates the Button control with default settings.
- Initialize a new instance of the BootstrapButton class.
- Use the ASPxButton.Text property to specify the button's text.
- Handle the ASPxButton.Click / ASPxClientButton.Click event occurring on the client/server side after the button is clicked.
<dx:BootstrapButton runat="server" Text="Button" AutoPostBack="false">
<ClientSideEvents Click="function(s,e) { dxbsDemo.showToast('The button has been clicked.'); }" />
</dx:BootstrapButton>
Inheritance
See Also
Feedback