This control is used to display a set of controls in one unit. It is basically a wrapper for other controls, enabling you will get group of server controls along with other elements like images etc.
The new feature in the panel control is the capability to scroll with scrollbars that appear automatically depending on the amount of information that panel control holds.
For a example below Figure shows where panel holds table control
<asp:Panel ID="Panel1" Width="100px" Height="100px" ScrollBars="Auto" runat="server">
<table>
<tr>
<td>
This text is to test the scrollbar in panel control.
If this text extends the limit of the panel control
the scrollbars appear
</td>
</tr>
</table>
</asp:Panel>
You can add controls dynamically too.
.cs
Label lblMessage = new Label();
lblMessage.Text = "Hello I am new to Panel control";
Panel1.Controls.Add(lblMessage);
That’s it a small explaination on panel control keep reading.
Thanks
Emmaneale Mendu
Web Developer
ASP Standard Controls
- ASP Label Control
- ASP TextBox Control
- ASP Button Control
- ASP Link Button Control
- ASP ImageButton Control
- ASP HyperLink Control
- ASP DropDownList Control
- ASP ListBox Control
- ASP CheckBox Control
- ASP CheckBoxList Control
- ASP RadioButton Control
- ASP RadioButtonList Control
- ASP Image Control
- ASP ImageMap Control
- ASP Calendar Control
- ASP Table Control
- ASP BulletedList Control
- ASP Hidden Control
- ASP Literal Control
- ASP AdRotator Control
- ASP Panel Control
- ASP PlaceHolder Control
- ASP FileUpload Control
- ASP UserControl
- ASP Custom Control
Random Tips and Tricks
Thursday, October 7, 2010
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment