How to use Panel control in

Panel example: how to use Panel control in
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C/DTD XHTML 1.0 Transitional//EN" "">

<script runat="server">

<html xmlns="">
    <head runat="server">
        <title>Panel example: how to use Panel control in</title>
        <form id="form1" runat="server">
                <asp:Panel ID="Panel1" runat="server" ScrollBars="Auto" Width="450" Height="200" Wrap="true" BackColor="Aqua" Direction="LeftToRight">
                        You can use the Panel control as a container for other controls. This is particularly useful when you are creating content programmatically and you need a way to insert the content into the page. The following sections describe additional ways that you can use the Panel control. 

                        Container for Dynamically Generated Controls. 

                        Grouping Controls and Markup. 

                        The Panel control provides a convenient container for controls that you create at run time. For details, see Adding ASP.NET Controls Programmatically. 

                        You can manage a group of controls and associated markup as a unit by putting them in a Panel control and then manipulating the Panel control. For example, you can hide or show a group of controls inside a panel by setting the panel's Visible property. 

Related example