Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Adding Scroll Bars in asp.net page

Status
Not open for further replies.

Naveed2001

Programmer
Joined
Apr 15, 2007
Messages
2
Location
PK
Hi All,

How can I add Scroll Bar in different areas of an asp.Net Page using Maste Page Scheme.

This can be done using Frames by Using the "Scrolling" attriibute of a frame tag.

 
I think this will work: Add an asp:panel control. It has the option of scrolling. You can add in it a content place holder.
 
To add a scrollbar to a HTML element, just add overflow:auto e.g.
Code:
<div style="height:200px;width:200px;overflow:auto;">
   ...
</div>


____________________________________________________________
Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]

Need help finding an answer? Try the Search Facility or read FAQ222-2244 on how to get better results.
 
I have done this but the when in left column if the content is exceded than the deafult height of that column, the scroll bar is not added in "tdLeft" column rather the complete table height is extended.


<div style="height:160px" id="Div1">
<div style="height:60px" id="Div2">
Web Genie
</div>
<table style="height:100px; overflow:auto" id="Table1" border="0">
<tr>
<td style="height:100px;overflow:auto" id="tdLeft" valign="top">

<asp:ContentPlaceHolder ID="cphTree" runat="server">
</asp:ContentPlaceHolder>
</td>
<td style="height:100px;overflow:auto" id="tdRight">
<asp:ContentPlaceHolder ID="DefaultContent" runat="server" />
</td>
</tr>
</table>
</div>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top