BootstrapButton Class
In This Article
Represents the button control.
Namespace: DevExpress.Web.Bootstrap
Assembly: DevExpress.Web.Bootstrap.v24.2.dll
NuGet Package: DevExpress.Web.Bootstrap
#Declaration
[DXClientDocumentationProviderWeb("BootstrapButton")]
[ToolboxTabName("DX.24.2: Bootstrap Controls")]
public class BootstrapButton :
ASPxButton,
ISimpleRenderControl,
IBSBadgeOwner
#Remarks
Note
The Bootstrap
- The control’s client-side equivalent is represented by the Bootstrap
Client object.Button - On the client side, the client object can be accessed directly by the name specified via the ASPx
Button. property.Client Instance Name - The available client events can be accessed by using the ASPx
Button. property.Client Side Events
The control’s client-side API is enabled if the ASPx
#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