пятница, 30 апреля 2010 г.

How to add a vertical or horizontal scrollbar to a ASP .NET Panel control?

Definition and Usage

The ScrollBars property is used to set or return the position and visibility of scroll bars in the Panel control


Some Content

valueSpecifies 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


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


Комментариев нет: