Asp.net panel scrollbar properties
ASP.NET Panel ScrollBars Property
Definition and Usage
The ScrollBars property is used to set or return the position and visibility of scroll bars in the Panel control.
Note:
If you want to set the vertical scrollbar set the height of the panel to fixed height.
If you want to set the horizontal scrollbar set the widht of the panel to fixed widht.
If both , set both height and widht of the panel to fixed height/widht.
Syntax
<asp:Panel ScrollBars="value" runat="server"> Some Content </asp:Panel> |
| Attribute | Description |
|---|---|
| value | Specifies the which scrollbars are shown or not shown.
Possible values:
|
Example
The following example sets the ScrollBars property to “Vertical” in a Panel control:
<form runat="server"> <asp:Panel id="pan1" runat="server" Height="100px" ScrollBars="Vertical">Some content </asp:Panel> </form> |






