Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Show server time in web site
Hi
Show server time in web site must be repeated every one minutes. Therefore the speed of web site program will be decreased. How can I do for this?
Thanks very much
Posted
Comments
Martin Arapovic 6-Feb-12 12:36pm    
Just to add something. If it is not crucial for you, client time can be shown in browser using java script.
Sergey Alexandrovich Kryukov 6-Feb-12 14:57pm    
It makes sense. To add to it: when a page is loaded, the client can synchronize with server time just once, just in case, and later show the clock using just the client side via JavaScript.
--SA

1 solution

use ajax updatepanel and timer in taht update panel.
Have the timerobject called by asyncpostbacktrigger.

It is all explained here.[^]
 
Share this answer
 

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