all groups > asp.net building controls > february 2006 >
You're in the

asp.net building controls

group:

autoscrolling in .net


autoscrolling in .net AVL
2/27/2006 3:40:26 AM
asp.net building controls:
Hi,

I've a requirement in which I need to implement autoscrolling....
Is there any control in .net which supports this functionality/............

Re: autoscrolling in .net Steve C. Orr [MVP, MCSD]
2/27/2006 4:21:52 PM
There are a lot of different ways to scroll things. The best way depends on
your requirements.

You can put any control into a fixed size area by putting it in a scrollable
div such as this:

<div id="Layer1" style="position:relative;width:350px;height:200px;overflow:
scroll;">control goes here</div>

The key is to use the "overflow" CSS attribute.Here's more info:
http://www.w3schools.com/css/pr_pos_overflow.asp

Another option is to put your control in an IFrame.
http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/IFRAME.asp

There are also other more complex techniques with richer client side
functionality such as XML data islands and AJAX.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net



[quoted text, click to view]

AddThis Social Bookmark Button