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. Countdown timer with updatepanel

Countdown timer with updatepanel

Scheduled Pinned Locked Moved ASP.NET
helpquestion
5 Posts 3 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.
  • T Offline
    T Offline
    treuveni
    wrote on last edited by
    #1

    Hi, I'm trying to creat a timer that count down and when it reaches 00:00 to alert with a popup and disable the form. Here is the client side code:

    I'm disabling the timer at the Timer_Tick event, checking when the minutes and seconds are 0. My problem is that i can't disable the form or the submit button. Can someone please assist me?

    J J 2 Replies Last reply
    0
    • T treuveni

      Hi, I'm trying to creat a timer that count down and when it reaches 00:00 to alert with a popup and disable the form. Here is the client side code:

      I'm disabling the timer at the Timer_Tick event, checking when the minutes and seconds are 0. My problem is that i can't disable the form or the submit button. Can someone please assist me?

      J Offline
      J Offline
      Joshua Omundson
      wrote on last edited by
      #2

      Are you getting any type of error messages or is the button just not being disabled? Can we also see the code when you are disabling the button.

      T 1 Reply Last reply
      0
      • T treuveni

        Hi, I'm trying to creat a timer that count down and when it reaches 00:00 to alert with a popup and disable the form. Here is the client side code:

        I'm disabling the timer at the Timer_Tick event, checking when the minutes and seconds are 0. My problem is that i can't disable the form or the submit button. Can someone please assist me?

        J Offline
        J Offline
        jkirkerx
        wrote on last edited by
        #3

        You have to use javascript for countdown timers. Try to google javascript countdown timers, I don't have sample code that is easy to paste right now at the moment.

        T 1 Reply Last reply
        0
        • J Joshua Omundson

          Are you getting any type of error messages or is the button just not being disabled? Can we also see the code when you are disabling the button.

          T Offline
          T Offline
          treuveni
          wrote on last edited by
          #4

          Joshua Omundson wrote:

          Are you getting any type of error messages or is the button just not being disabled?

          Nop, i don't get any error, the button is just not being disable.

          Joshua Omundson wrote:

          Can we also see the code when you are disabling the button

          I'm doing it at the page load event in side some if condition. Also tried puting it inside the time tick event. When i debuged it i saw that the if statment return true.

          1 Reply Last reply
          0
          • J jkirkerx

            You have to use javascript for countdown timers. Try to google javascript countdown timers, I don't have sample code that is easy to paste right now at the moment.

            T Offline
            T Offline
            treuveni
            wrote on last edited by
            #5

            jkirkerx wrote:

            You have to use javascript for countdown timers.

            I can't because i'm getting all kinds of parameters from server side and then activating the timer.

            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