Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
G

G Mariappan a Murugan

@G Mariappan a Murugan
About
Posts
2
Topics
1
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Display the server time and refresh every 1 sec using Javascript in asp.net
    G G Mariappan a Murugan

    Hi Richard, Thanks for your reply i used javascript to get the server time please see the below code its works for me //Users time var timeLocal = new Date(); var timeServer = new Date('<%= DateTime.Now.ToString()%>'); //Calculate the difference (returns milliseconds) millDiff = timeLocal - timeServer; //initalize the clock on loading of page window.onload = function () { //set the interval so clock ticks var timeClock = setInterval("TimeTick()", 1000); } //The ticking clock function function TimeTick() { //grab updated time timeLocal = new Date(); //add time difference timeLocal.setMilliseconds(timeLocal.getMilliseconds() - millDiff); document.getElementById("lblserverTime")=timeLocal; This code working fine for me...</x-turndown>

    JavaScript help csharp javascript asp-net sysadmin

  • Display the server time and refresh every 1 sec using Javascript in asp.net
    G G Mariappan a Murugan

    Hi all, I want to display the server time and refresh the time every 1 sec using javascript in asp.net but it showing client time when page is runing. So any one can help me to sort out this problem. Thanks in advance... Regards, G Mariappan

    JavaScript help csharp javascript asp-net sysadmin
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups