473,507 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Text automatically scrolling in ASP.Net

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
Jun 27 '08 #1
6 1470
On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.comwrote:
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
Jun 27 '08 #2
Thanks, but how do I make it scroll automatically - over and over again
thanks Paul S

"Munna" wrote:
On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.comwrote:
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
Jun 27 '08 #3
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
PSThanks, but how do I make it scroll automatically - over and over
PSagain thanks Paul S
PS>
PS"Munna" wrote:
PS>
>On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.comwrote:
>>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

Jun 27 '08 #4
Hi Michael
The information has a ValidFrom property and a ValidTo property indicating
when it should be displayed so I have to calculate it when I generate the
page. I thought of building a table dynamically.
thanks
Paul S

"Michael Nemtsev [MVP]" wrote:
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
PSThanks, but how do I make it scroll automatically - over and over
PSagain thanks Paul S
PS>
PS"Munna" wrote:
PS>
On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.comwrote:

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


Jun 27 '08 #5
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
PSHi Michael
PSThe information has a ValidFrom property and a ValidTo property
PSindicating
PSwhen it should be displayed so I have to calculate it when I
PSgenerate the
PSpage. I thought of building a table dynamically.
PSthanks
PSPaul 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

PSThanks, but how do I make it scroll automatically - over and over
PSagain thanks Paul S
PS>
PS"Munna" wrote:
PS>
>>>On Jun 2, 5:08 pm, Paul S <Pa...@discussions.microsoft.comwrote:

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

Jun 27 '08 #6
Try using one of the JavaScript scrollers out there. You will have to load
the text from your code behind, but that should be all you have to do to get
it working, at least in a basic implementation. If you want reuse, you will
make a server control that spits out the JavaScript.

--
Gregory A. Beamer
MVP, MCP: +I, SE, SD, DBA

Subscribe to my blog
http://gregorybeamer.spaces.live.com/lists/feed.rss

or just read it:
http://gregorybeamer.spaces.live.com/

*************************************************
| Think outside the box!
|
*************************************************
"Paul S" <Pa***@discussions.microsoft.comwrote in message
news:32**********************************@microsof t.com...
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
Jun 27 '08 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
16664
by: Midas NDT Sales | last post by:
I have been looking at a simple example of a scrolling text box (the one in the SAM book) as below: <script language="JavaScript"> var pos=100; function Scroll() { if...
4
6933
by: Cat Laugel | last post by:
Hello, I am redesigning my website and would like to have the text scroll within the webpage without the page itself scrolling.... if you understand what I mean... ;-) I want a very sleek look...
16
7513
by: laura | last post by:
Can anyone help me to decide the best way to do this please. I'm writing an intranet and I need to put something like a non-editable scrolling text box on the home page where daily announcements...
5
21676
by: Will Gillen | last post by:
I need to have a "scrolling" text label or textbox at the bottom of my window to show the URL of where a song is being played from. I want the text to scroll on a single line from left to right in...
17
4686
by: pigeonrandle | last post by:
Hi, I have seen loads of different ways to do this, but the all seem to yield the same result - text that doesn't flicker when it's moving too slowly! Does anyone know 'the best way' to make text...
5
4228
by: PythonistL | last post by:
I am a newbie with Javascript. I have this simple script for scrolling text <HTML> <HEAD> <TITLE>Scrolling Message Script</TITLE> <SCRIPT language="JavaScript"><!-- var msg = 'My scrolling...
1
2464
by: Thorsten Kleinweber | last post by:
Hello, I did some first steps in programming a site for a friend and have some questions concerning web design. The site is http://www.stevanez-juls.de: 1. On my tft display (with low...
4
2440
by: =?Utf-8?B?UGhpbCBKb2huc29u?= | last post by:
Hi I am pretty new to asp.net gridviews. I need to get the text in one column to scroll, I have little screen space and one column is normally empty, but is sometimes quite long. Has...
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4702
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
760
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
412
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.