eramgarden Posted April 2, 2004 Posted April 2, 2004 I want to display datetime on my pages...But i want the datetime to increment..like clock ticking... Not static datetime... For example, if the page is opened at 9:00:00AM and it's been open for 2 min on the same page..I want the time displayed to actually go to 9:00:01, 9:00:02... You know what I mean? like system clock.. Quote
bungpeng Posted April 2, 2004 Posted April 2, 2004 Use client side languages like Javascript rather than server side language (c# or vb.net) Quote
eramgarden Posted April 2, 2004 Author Posted April 2, 2004 How is it done in .net tho to display server side datetime?? Quote
MorningZ Posted April 2, 2004 Posted April 2, 2004 All the server (.NET code) can do is grab the time from the server and display it it cannot automatically update the time on the client's browser because once the server gives the browser the HTML, it is done talking to the browser unless the user changes pages, posts, does something to make the browser goto the server you have to use a client side language, like Javascript, to change the display dynamically and in "real time" Quote If you make it idiot proof, they'll build a better idiot :-)
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.