Easy Tutorial
❮ Control Linkbutton Control Placeholder ❯

ASP.NET Panel Control



Definition and Usage

The Panel control serves as a container for other controls.

Tip: This control is often used for programmatically generating controls or for showing and hiding groups of controls.

Note: This control is rendered as an HTML <div> element.


Properties

Property Description .NET
BackImageUrl Specifies the URL of the image file to display as the background of the control. 1.0
DefaultButton Specifies the ID of the default button in the Panel. 2.0
Direction Specifies the direction in which the content is displayed in the Panel. 2.0
GroupingText Specifies the caption for the group of controls in the Panel. 2.0
HorizontalAlign Specifies the horizontal alignment of the content. 1.0
runat Specifies that the control is a server control. Must be set to "server". 1.0
ScrollBars Specifies the position and visibility of scrollbars in the Panel. 2.0
Wrap Specifies whether the content wraps within the Panel. 1.0

Web Control Standard Attributes

For a complete description, visit Web Control Standard Attributes.

Control Standard Properties

For a complete description, visit Control Standard Properties.


Example

Panel


❮ Control Linkbutton Control Placeholder ❯