ASP.NET Panel ScrollBarsProperties
Panel Control
Definition and Usage
The ScrollBars property is used to set or return the position and visibility of scrollbars in a Panel control.
Syntax
<asp:Panel ScrollBars="value" runat="server">
Some Content
</asp:Panel>
Some Content
</asp:Panel>
| Property | Description |
|---|---|
| value | Specifies whether scrollbars are displayed. Possible values:
|
Example
The following example sets the ScrollBars property of the Panel control to "Auto":
<form runat="server">
<asp:Panel id="pan1" runat="server"
Height="100px" ScrollBars="Auto">
Some content
</asp:Panel>
</form>
<asp:Panel id="pan1" runat="server"
Height="100px" ScrollBars="Auto">
Some content
</asp:Panel>
</form>
Demo Example »
Panel Control Other Extensions