System.Web.UI.WebControls.Panel Class

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

See Also: Panel Members

Syntax

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

Remarks

In this topic:

Introduction

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

Example

<asp:Panel
    AccessKey="string"
    BackColor="color name|#dddddd"
    BackImageUrl="uri"
    BorderColor="color name|#dddddd"
    BorderStyle="

Requirements

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