BootstrapButton Class
Represents the button control.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.1.dll
NuGet Package: DevExpress.Web.Bootstrap
Declaration
[DXClientDocumentationProviderWeb("BootstrapButton")]
[ToolboxTabName("DX.24.1: Bootstrap Controls")]
public class BootstrapButton :
ASPxButton,
ISimpleRenderControl,
IBSBadgeOwner
Remarks
Note
The BootstrapButton control provides you with comprehensive client-side functionality implemented using JavaScript code:
- 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.
Example
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