ASP.NET ScrollBars property
Definition and usage
The ScrollBars property is used to set or return the position and visibility of the scrollbar in the Panel control.
Syntax
<asp:Panel ScrollBars="value" runat="server"> Some Content </asp:Panel>
Property | Description |
---|---|
value |
Specify whether to display the scrollbar. Possible values:
|
Example
The following example sets the ScrollBars property of the Panel control to "Vertical":
<form runat="server"> <asp:Panel id="pan1" runat="server"> Height="100px" ScrollBars="Vertical"> Some content </asp:Panel> </form>
Example
- Set scrollbar behavior for Panel controls