Hello Paul,
why to do in on server side?! rely on client, and do it via DOM model, because
you can't be sure about the opened size of browser window.
javascript will do this job smoothly
---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
PS> Hi Michael
PS> The information has a ValidFrom property and a ValidTo property
PS> indicating
PS> when it should be displayed so I have to calculate it when I
PS> generate the
PS> page. I thought of building a table dynamically.
PS> thanks
PS> Paul S
PS> "Michael Nemtsev [MVP]" wrote:
PS>
>> Hello Paul,
>>
>> You need to know how much text do you have, for example number of
>> lines and then you can use window.scrollByLines() or
>> window.scrollByPages()
>>
>> ---
>> WBR,
>> Michael Nemtsev [.NET/C# MVP] :: blog:
>> http://spaces.live.com/laflour
>> "The greatest danger for most of us is not that our aim is too high
>> and we miss it, but that it is too low and we reach it" (c)
>> Michelangelo
>>
>> PS> Thanks, but how do I make it scroll automatically - over and over
>> PS> again thanks Paul S
>> PS>
>> PS> "Munna" wrote:
>> PS>
>>>> On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.com> wrote:
>>>>
>>>>> Hi
>>>>> I have a screen display news data stored in a database. Sometimes
>>>>> the amount
>>>>> of data displayed exceeds the screen size. How can I make this
>>>>> scroll
>>>>> automatically over and over again ?
>>>>> thank Paul S
>>>> Hi
>>>>
>>>> to scroll page or document element you can use
>>>>
>>>> window.scrollTo
>>>> or
>>>> window.scrollBy
>>>> dom methods...
>>>> when your page's content change check the height of the document
>>>> element
>>>> if it exceeds the screen size make scroll your content..
>>>> Best of luck
>>>> Munna
>>>> www.munna.shatkotha.com
>>>> www.munna.shatkotha.com/blog
>>>> www.shatkotha.com