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. How to set a TIMER ?

How to set a TIMER ?

Scheduled Pinned Locked Moved ASP.NET
questiontutorial
5 Posts 4 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
    tina newcoder
    wrote on last edited by
    #1

    I want to set a timer, in my web application. I am displaying some questions on a web page, i want to set a timer, such that, say after 120 seconds the can't answer the question (i want to disable the radio buttons). So, how can i set a timer ?

    A N 2 Replies Last reply
    0
    • T tina newcoder

      I want to set a timer, in my web application. I am displaying some questions on a web page, i want to set a timer, such that, say after 120 seconds the can't answer the question (i want to disable the radio buttons). So, how can i set a timer ?

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      you can use AJAX Timer Control

      Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

      T 1 Reply Last reply
      0
      • A Abhijit Jana

        you can use AJAX Timer Control

        Best Regards ----------------- Abhijit Jana Check Out My Latest Article Java.NET : Integration of Java and .NET[^] "Success is Journey it's not a destination"

        T Offline
        T Offline
        tina newcoder
        wrote on last edited by
        #3

        Abhijit Jana wrote:

        AJAX Timer Control

        i am not able to find any example on AJAX Timer Control those present here on codeproject are too big and complicated ... Do you have any direct or simple example (or link) for AJAX Timer Control ??? :confused:

        S 1 Reply Last reply
        0
        • T tina newcoder

          Abhijit Jana wrote:

          AJAX Timer Control

          i am not able to find any example on AJAX Timer Control those present here on codeproject are too big and complicated ... Do you have any direct or simple example (or link) for AJAX Timer Control ??? :confused:

          S Offline
          S Offline
          Slasher175
          wrote on last edited by
          #4

          Not sure if this is what you need but it may help... Create a standard ASPX Timer control with an AJAX update panel. ... <asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:Timer ID="tmrClock" runat="server" Interval="1000" OnTick="tmrClock_Tick"></asp:Timer> <asp:UpdatePanel ID="updPnlClock" UpdateMode="Conditional" runat="server"> <Triggers> <asp:AsyncPostBackTrigger ControlID="tmrClock" EventName="Tick" /> </Triggers> <ContentTemplate> <asp:Label ID="lblTime" runat="server" ForeColor="#B22222"></asp:Label> </ContentTemplate> </asp:UpdatePanel> ... Code Behind Page: Subscribe to the Tick event on the ASP Timer control. This one represents a ticking clock. protected void tmrClock_Tick(object sender, EventArgs e) { lblTime.Text = DateTime.Now.ToLongTimeString(); }

          1 Reply Last reply
          0
          • T tina newcoder

            I want to set a timer, in my web application. I am displaying some questions on a web page, i want to set a timer, such that, say after 120 seconds the can't answer the question (i want to disable the radio buttons). So, how can i set a timer ?

            N Offline
            N Offline
            N a v a n e e t h
            wrote on last edited by
            #5

            tina- wrote:

            I want to set a timer, in my web application.

            Use javascript setTimeout[^]. If you have AJAX server extensions installed and got AJAX toolkit DLL, you can try the timer control. It encapsulates the settimeout functionality.

            All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions

            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