Easy Tutorial
❮ Prop Webcontrol Linkbutton Onclientclick Aspnet Tutorial ❯

ASP.NET Panel DefaultButton Property



Definition and Usage

The DefaultButton property is used to set or return the ID of the default button for the Panel control.

Use the DefaultButton property to indicate which button will be clicked when the Panel control has focus and the user presses the Enter key.

Syntax

Property Description
button_id The ID of the button to use as the default button.

Example

The following example sets the DefaultButton for a Panel control:


❮ Prop Webcontrol Linkbutton Onclientclick Aspnet Tutorial ❯