Skip to main content

ASPxPanelBase.DefaultButton Property

Gets or sets the identifier for the default button that is contained in the panel control.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public string DefaultButton { get; set; }

Property Value

Type Default Description
String String.Empty

A string value corresponding to the ID for a button control contained in the panel.


Use the DefaultButton property to indicate which button is clicked when the panel control has focus and the user presses the ENTER key.


The DefaultButton property works when it is possible to focus a panel. To be able to focus the panel, assign the TabIndex property for the panel.


The complete sample project is available in the DevExpress Code Central database at E347.

<dxp:ASPxPanel ID="ASPxPanel1" runat="server" DefaultButton="ASPxButton1" Width="200px">
        <dxp:PanelContent runat="server">
            <dxe:ASPxTextBox ID="ASPxTextBox1" runat="server" Width="170px" 
                Text="test value" ClientInstanceName="ASPxTextBox1" />
                <dxe:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" 
                    Text="Return To Parent Page">
                <ClientSideEvents Click="ReturnToParentPage" />
See Also