ASP.NET ScrollBars Property
Complete Panel Control Reference
Definition and Usage
The ScrollBars property is used to set or return the position and visibility
of scroll bars in the Panel control
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:
- None - Default. No scroll bars are shown
- Horizontal - Only a horizontal scroll bar is shown
- Vertical - Only a vertical scroll bar is shown
- Both - Horizontal and vertical scroll bars are shown
- Auto - Horizontal, vertical, or both scroll bars are shown if
needed
|
Example
The following example sets the ScrollBars property to "Auto" in a Panel control:
<form runat="server">
<asp:Panel id="pan1" runat="server"
Height="100px" ScrollBars="Auto">
Some content
</asp:Panel>
</form>
|
Show example »
|
Complete Panel Control Reference

The Altova MissionKit, recent winner of the Jolt Product Excellence and Productivity Award for Best Development Environment,
is an integrated suite of tools ideal for:
- XML development
- Web & Web services development
- Data mapping & integration
- Rendering & publishing XML & database data
- XBRL validation, taxonomy editing, transformation & rendering
The MissionKit for XML Developers includes XMLSpy®, MapForce®, and StyleVision® plus 3 additional tools for less than the price of 2.
Try all 6 products free for 30 days!
Download a fully-functional free trial
|
|
|
|