Home Asp.net Asp.net panel scrollbar properties

Tips and tricks

Site statistics

Members : 19
Content : 104
Content View Hits : 18408

Who's Online

We have 308 guests online
Asp.net panel scrollbar properties PDF Print E-mail
User Rating: / 0
PoorBest 
Articles - Asp.net
Written by Dot4Pro   
Friday, 27 March 2009 05:30

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:

  • 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>

 

Last Updated on Thursday, 17 December 2009 16:49
 

Add comment


Security code
Refresh

feed-image Feed Entries