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
No comments:
Post a Comment