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. javascript timer in asp.net

javascript timer in asp.net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpjavascriptasp-net
7 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.
  • S Offline
    S Offline
    ssoffline
    wrote on last edited by
    #1

    hi i am trying to build a javascript countdown timer using asp.net , the problem here is that the timer gets reset when page is postbacked or refreshed can anyone help me solve this problem , also i want it store datetime on which started dyanamically; ssoffline

    E 1 Reply Last reply
    0
    • S ssoffline

      hi i am trying to build a javascript countdown timer using asp.net , the problem here is that the timer gets reset when page is postbacked or refreshed can anyone help me solve this problem , also i want it store datetime on which started dyanamically; ssoffline

      E Offline
      E Offline
      enjoycrack
      wrote on last edited by
      #2

      Hi there, IMO, just a suggestion: how about store the current time into a hidden field... << >>

      S 1 Reply Last reply
      0
      • E enjoycrack

        Hi there, IMO, just a suggestion: how about store the current time into a hidden field... << >>

        S Offline
        S Offline
        ssoffline
        wrote on last edited by
        #3

        hi thnks for the suggestion bur i hv guessed it(hidden feilds) already can u give me the code for using the same i have faced problems in doing the same bye

        E 1 Reply Last reply
        0
        • S ssoffline

          hi thnks for the suggestion bur i hv guessed it(hidden feilds) already can u give me the code for using the same i have faced problems in doing the same bye

          E Offline
          E Offline
          enjoycrack
          wrote on last edited by
          #4

          what problem when you do it by hidden fields ?? << >>

          S 1 Reply Last reply
          0
          • E enjoycrack

            what problem when you do it by hidden fields ?? << >>

            S Offline
            S Offline
            ssoffline
            wrote on last edited by
            #5

            i am not able to make out whether to store the starting time in a client or server control and after that i am not able to retreive the values please tell me the procedure

            E 1 Reply Last reply
            0
            • S ssoffline

              i am not able to make out whether to store the starting time in a client or server control and after that i am not able to retreive the values please tell me the procedure

              E Offline
              E Offline
              enjoycrack
              wrote on last edited by
              #6

              everytime the timer count down a tick, this also store into a hidden field so when the page is reloaded, you can start the timer with start time read from the hidden field. That's just an idea... << >>

              S 1 Reply Last reply
              0
              • E enjoycrack

                everytime the timer count down a tick, this also store into a hidden field so when the page is reloaded, you can start the timer with start time read from the hidden field. That's just an idea... << >>

                S Offline
                S Offline
                ssoffline
                wrote on last edited by
                #7

                well i asked for a dyanamic timer which can countdown like a clock every second and also not loose its value on re fresh i meam to continue without postback bye

                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