Back to Devexpress

BootstrapButton Class

aspnetbootstrap-devexpress-dot-web-dot-bootstrap-5eb7f953.md

latest3.2 KB
Original Source

BootstrapButton Class

Represents the button control.

Namespace : DevExpress.Web.Bootstrap

Assembly : DevExpress.Web.Bootstrap.v25.2.dll

NuGet Package : DevExpress.Web.Bootstrap

Declaration

csharp
[DXClientDocumentationProviderWeb("BootstrapButton")]
[ToolboxTabName("DX.25.2: Bootstrap Controls")]
public class BootstrapButton :
    ASPxButton,
    ISimpleRenderControl,
    IBSBadgeOwner
vb
<ToolboxTabName("DX.25.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:

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.

Example

This example demonstrates the Button control with default settings.

aspx
<dx:BootstrapButton runat="server" Text="Button" AutoPostBack="false">
    <ClientSideEvents Click="function(s,e) { dxbsDemo.showToast('The button has been clicked.'); }" />
</dx:BootstrapButton>

Inheritance

Object Control WebControl ASPxWebControlBase ASPxWebControl ASPxButton BootstrapButton

See Also

BootstrapButton Members

DevExpress.Web.Bootstrap Namespace