Use asp:panel to host asp.net controls : Panel « ASP.net Controls « ASP.NET Tutorial






<html><body>
   <form runat="server">
      <asp:Panel id="Panel1" runat="server">
         <tr>
            <td width="100" valign="top">First and last name:
            </td>
            <td width="300" valign="top">
               <asp:TextBox id="tbFName" runat="server" />
               <asp:TextBox id="tbLName" runat="server" />
            </td>
         </tr>
         <tr>
            <td valign="top">Email:</td>
            <td valign="top">
               <asp:TextBox id="tbEmail" runat="server" />
            </td>
         </tr>
         <tr>
            <td valign="top">Address:</td>
            <td valign="top">
               <asp:TextBox id="tbAddress" runat="server" />
            </td>
         </tr>
         <tr>
            <td valign="top">City, State, ZIP:</td>
            <td valign="top">
               <asp:TextBox id="tbCity" runat="server" />,
               <asp:TextBox id="tbState" runat="server" size=2 />&nbsp;
               <asp:TextBox id="tbZIP" runat="server" size=5 />
            </td>
         </tr>
         <tr>
            <td valign="top">Phone:</td>
            <td valign="top">
               <asp:TextBox id="tbPhone" runat="server" size=11 />
            </td>
         </tr>
         <tr>
            <td colspan="2" valign="top" align="right">
               <asp:Button id="btSubmit" runat="server" text="Add"/>
            </td>
         </tr>
      </asp:Panel>
   </form>
</body>
</html>








3.20.Panel
3.20.1.Important properties, methods and events of Panel control
3.20.2.Use asp:panel to host asp.net controls
3.20.3.The ScrollBars property enables you to display scrollbars around a panel
3.20.4.The Panel control enables you to work with a group of ASP.NET controls: show or hide
3.20.5.Set AssociatedControlID for asp:Panel
3.20.6.Hide, show panel