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 "Vertical" in a Panel control:
<form runat="server">
<asp:Panel id="pan1" runat="server"
Height="100px" ScrollBars="Vertical">
Some content
</asp:Panel>
</form>
|
Try-It-Yourself Demos
Set the scrollbar behavior for a Panel control
Complete Panel Control Reference
Whether you're new to XML or already an advanced user, the user-friendly views
and powerful entry helpers, wizards, and debuggers in XMLSpy are designed to
meet your XML and Web services development needs from start to finish.
- XML editor
- Graphical XML Schema / DTD editors
- XSLT 1.0/2.0 editor, debugger, profiler
- XQuery editor, debugger, profiler
- Support for Office Open XML (OOXML)
- Graphical WSDL editor & SOAP debugger
- Java, C#, C++ code generation
- And much more!
Download a free 30-day trial today!
|