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
  1. Home
  2. Web Development
  3. ASP.NET
  4. Live Clock in asp.net

Live Clock in asp.net

Scheduled Pinned Locked Moved ASP.NET
csharpjavascripthtmlasp-netquestion
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    kirthikirthi
    wrote on last edited by
    #1

    Hi I am displaying a live clock in a HTML text box using javascript When (asp.net) button is click that time must print in a (asp.net) label (It is in asp.net web page) MY CODE IS :

    function show(){ var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="AM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds document.Tick.Clock.value=hours+":"+minutes+":" +seconds+" "+dn setTimeout("show()",1000) } show() OR Can any one tell me how can i display a live colck in a (asp.net)text box asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

    P 3 Replies Last reply
    0
    • K kirthikirthi

      Hi I am displaying a live clock in a HTML text box using javascript When (asp.net) button is click that time must print in a (asp.net) label (It is in asp.net web page) MY CODE IS :

      function show(){ var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="AM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds document.Tick.Clock.value=hours+":"+minutes+":" +seconds+" "+dn setTimeout("show()",1000) } show() OR Can any one tell me how can i display a live colck in a (asp.net)text box asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

      P Offline
      P Offline
      psmukil
      wrote on last edited by
      #2

      Hi Kirthi I hope the following link will help you, dont know whether you have visited this link already. Regards Mukilan.

      1 Reply Last reply
      0
      • K kirthikirthi

        Hi I am displaying a live clock in a HTML text box using javascript When (asp.net) button is click that time must print in a (asp.net) label (It is in asp.net web page) MY CODE IS :

        function show(){ var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="AM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds document.Tick.Clock.value=hours+":"+minutes+":" +seconds+" "+dn setTimeout("show()",1000) } show() OR Can any one tell me how can i display a live colck in a (asp.net)text box asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

        P Offline
        P Offline
        psmukil
        wrote on last edited by
        #3

        Hi Kirthi I hope the following link will help you, dont know whether you have visited this link already. http://javascriptkit.com/script/cutindex1.shtml Regards Mukilan.

        1 Reply Last reply
        0
        • K kirthikirthi

          Hi I am displaying a live clock in a HTML text box using javascript When (asp.net) button is click that time must print in a (asp.net) label (It is in asp.net web page) MY CODE IS :

          function show(){ var Digital=new Date() var hours=Digital.getHours() var minutes=Digital.getMinutes() var seconds=Digital.getSeconds() var dn="AM" if (hours>12){ dn="PM" hours=hours-12 } if (hours==0) hours=12 if (minutes<=9) minutes="0"+minutes if (seconds<=9) seconds="0"+seconds document.Tick.Clock.value=hours+":"+minutes+":" +seconds+" "+dn setTimeout("show()",1000) } show() OR Can any one tell me how can i display a live colck in a (asp.net)text box asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf

          P Offline
          P Offline
          psmukil
          wrote on last edited by
          #4

          Hi Kirthi I hope the following link will help you, dont know whether you have visited this link already. http://javascriptkit.com/script/cutindex1.shtml http://javascriptkit.com

          K 1 Reply Last reply
          0
          • P psmukil

            Hi Kirthi I hope the following link will help you, dont know whether you have visited this link already. http://javascriptkit.com/script/cutindex1.shtml http://javascriptkit.com

            K Offline
            K Offline
            kirthikirthi
            wrote on last edited by
            #5

            I am displaying live clock using javascript in html textbox When asp.net button is clicked the time must display in asp.net label This total code is in asp.et web page asdfasdfasdfasdfasdfasdfasdfasdfasdfasdf -- modified at 6:37 Wednesday 22nd March, 2006

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

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