Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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..

Posted

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"

If you make it idiot proof, they'll build a better idiot :-)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...