System.Web.UI.WebControls.Panel.DefaultButton Property

Gets or sets the identifier for the default button that is contained in the System.Web.UI.WebControls.Panel control.

Syntax

[System.Web.UI.Themeable(false)]
public virtual string DefaultButton { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

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:

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0