How to scroll ASP.NET Content Area - AJAX Animation Possibly?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

HI. I need to create a small area within an aspx page, which contains up and
down buttons. The user will click on the up/down buttons and content inside
the small area will 'page', just like for example if you are paging through a
PDF document.

Could someone please give me some direction for accomplishing this? I am
going to populate the entire area w/data, and then just allow the user to
scroll.

Thanks
 
The easiest way to do this is just to have a scrolling region, perhaps a
div. Use the CSS overflow property:

<div style="width:500px; height: 500px; overflow:scroll">
content goes here
</div>

Set the height and width to whatever is appropriate for you page. Scrollbars
will automatically appear if the content is larger.

Dave
 
Thank you!

Dave Sussman said:
The easiest way to do this is just to have a scrolling region, perhaps a
div. Use the CSS overflow property:

<div style="width:500px; height: 500px; overflow:scroll">
content goes here
</div>

Set the height and width to whatever is appropriate for you page. Scrollbars
will automatically appear if the content is larger.

Dave
 
Back
Top