ankitweblogic logo
W e b t u t o r i a l s

Website

ASP.NET Introduction

ASP.NET Web Forms

Standard Controls

Label Control

TextBox Control

Image Control

Button Controls

Redirecting User

Using HyperLinks

RadioButton Control

RadioButtonList

CheckBox Control

CheckBoxList Control

DropDownList

ListBox Control

ImageMap Control

Master Page

View State

Event-Driven Programming

IsPostBack

ASP.NET Page Structure

Visibility of Controls

Formatting Controls

Applying CSS

Dynamic CSS

Using Style Class

Themes and Skins

Panel Control

PlaceHolder Control

AdRotator Control

Calendar Control

Validation Controls

Page Navigation

User Control

Separating Code-Presentation

Overview of ADO.NET

Data Binding

DataBinding List Control

Panel Control in ASP.NET

A Panel control is a container control that can contain other controls. It renders as an HTML <Div> element on the client. The Panel control is useful for manipulating a group of controls together. For instance you can control the visibility of the controls of a panel by controlling the visibility of the panel.

Table lists all the properties of the Panel control. This control has no methods, or events.

Property Description
BackImageURL Gets or sets the URL of a background image to be displayed behind the contents of the panel.
HorizontalAlign Sets horizontal alignment of the panel contents. Possible values are Center, Justify, Left, NotSet, Right.
Wrap When True, wraps the panel contents.

In this example, depending upon the user selection, one of two panels is displayed.