Click here to Skip to main content
15,892,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have set a timer for a page which is too long but if i need to see it, i have to go up and see it, which wastes my time. i want it to flow with the page as i scroll down so that i can see the timer when i come to end of page also.

plz help me....
Posted
Updated 17-Nov-11 21:40pm
v2
Comments
Mehdi Gholam 18-Nov-11 3:06am    
Winforms, Web in which technology? Also edit your question as it makes little sense.
Sergey Alexandrovich Kryukov 18-Nov-11 3:11am    
What indeed? ASP.NET, WPF?
Based on the term "page", I assumed this is ASP.NET. Anyway, please tag it.
I provided some alternative idea, please see.
--SA
Member 8388026 18-Nov-11 3:37am    
i have some stuffs on the page in asp.net.The contents are too long so i have used the timer ajax tool for it.as soon the user logs in, he can view any item upto 2 minutes after that the page gets logged out in such a manner i have designed and coded it but as the page comes down the must be able to see that how much time is remaining .so this is my scenario plz help me.....
Sergey Alexandrovich Kryukov 18-Nov-11 3:13am    
As I say, good thinking, only you should not call this thing "timer". Also, pay attention: when you say "flow with the page" actually means "stay at rest" relative to the application window and computer desktop.
--SA
Member 8388026 18-Nov-11 3:37am    
i have some stuffs on the page in asp.net.The contents are too long so i have used the timer ajax tool for it.as soon the user logs in, he can view any item upto 2 minutes after that the page gets logged out in such a manner i have designed and coded it but as the page comes down the must be able to see that how much time is remaining .so this is my scenario plz help me.....

I understand the need of it. Good thinking, but the implementation could be somewhat difficult to me. How about an alternative idea: you can have scrollable and non-scrollable parts of the page, and your element showing time (don't call it timer which is something different) should stay on non-scrollable part? This technique is pretty usual.

—SA
 
Share this answer
 
v2
Use Two Div...<br />
In first div use Timer...<br />
In Second div apply this Style...

C#
<div style="height:500px; overflow:auto;"></div>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900