Gets or sets the identifier for the default button that is contained in the System.Web.UI.WebControls.Panel control.
Documentation for this section has not yet been entered.
Use the Panel.DefaultButton property to indicate which button gets clicked when the System.Web.UI.WebControls.Panel control has focus and the user presses the ENTER key. The Panel.DefaultButton can be set to the identifier for a System.Web.UI.WebControls.Button control or any control that implements the System.Web.UI.WebControls.IButtonControl interface except a System.Web.UI.WebControls.LinkButton control.
If the Panel.DefaultButton is set to a control that does not implement the System.Web.UI.WebControls.IButtonControl interface, or to a control that is not contained in the System.Web.UI.WebControls.Panel control, the System.Web.UI.WebControls.Panel control throws an exception while rendering.
Setting the Panel.DefaultButton property is not supported for the following scenarios:
Setting focus outside of the input controls in the panel and then pressing the ENTER key. The default post back action is not guaranteed to trigger.
Pressing the ENTER key with focus inside a multi-line textbox. In a multi-line textbox, pressing the ENTER key should create a new line in the textbox which is the expected behavior. In browsers where the pressing the ENTER key inside a multi-line textbox triggers a post back but you want the ENTER key to create a new line instead you can attach a JavaScript function to the input control. The script should capture the ENTER key and stop the post back. For example, you can use the WebControl.Attributes property collection to add client script for the onKeyPress event.
Referencing a default button that is a System.Web.UI.WebControls.LinkButton control. Only System.Web.UI.WebControls.Button and System.Web.UI.WebControls.ImageButton controls are supported.
Changing the Panel.DefaultButton programmatically during an asynchronous post back when the System.Web.UI.WebControls.Panel control is not inside of an System.Web.UI.UpdatePanel control. Asynchronous post backs can be enabled on a page by adding one or more System.Web.UI.UpdatePanel controls to the page. System.Web.UI.UpdatePanel controls can be used to update selected regions of a page instead of updating the whole page with a postback. For more information, see UpdatePanel Control Overview and Partial-Page Rendering Overview.
Setting this property by themes or style sheet themes. For more information, see System.Web.UI.ThemeableAttribute and ASP.NET Themes Overview.