System.Web.UI.WebControls.Panel Class

Represents a control that acts as a container for other controls.

See Also: Panel Members


[System.Web.UI.ToolboxData("<{0}:Panel runat=server>Panel</{0}:Panel>")]
[System.ComponentModel.Designer("System.Web.UI.Design.WebControls.PanelDesigner, System.Design, Version=, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", "System.ComponentModel.Design.IDesigner")]
public class Panel : WebControl


In this topic:


The System.Web.UI.WebControls.Panel control is a container for other controls. It is especially useful when you want to generate controls programmatically, hide/show a group of controls, or localize a group of controls.

The Panel.Direction property is useful for localizing a System.Web.UI.WebControls.Panel control's content to display text for languages that are written from right to left, such as Arabic or Hebrew.

The System.Web.UI.WebControls.Panel control provides several properties that allow you to customize the behavior and display of its contents. Use the Panel.BackImageUrl property to display a custom image for the System.Web.UI.WebControls.Panel control. Use the Panel.ScrollBars property to specify scroll bars for the control.

Declarative Syntax


    BackColor="color name|#dddddd"
    BorderColor="color name|#dddddd"


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