title: Timer tick event not firing
body: <pre><code>&lt;asp:Timer ID="timer1" runat="server" OnTick="timer1_tick"&gt;                                        &lt;/asp:Timer&gt;
  &lt;asp:UpdatePanel ID="updatepanel1" runat="server" UpdateMode="Conditional"&gt;
    &lt;ContentTemplate&gt;
       &lt;asp:Label ID="lbltimer" runat="server"&gt;&lt;/asp:Label&gt;
    &lt;/ContentTemplate&gt;
    &lt;Triggers&gt;
       &lt;asp:AsyncPostBackTrigger ControlID="timer1" EventName="tick" /&gt;
    &lt;/Triggers&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>coding in page load in !IsPostback </p>
  
  <pre><code>        timer1.Enabled = true;
          Session["timeout"] = DateTime.Now.AddMinutes(60).ToString();
  </code></pre>
  
  <p>This is the tick event coding. The problem is the tick event is not firing at all whenever I run the app. The app is Asp.net application.</p>
  
  <pre><code>protected void timer1_tick(object sender, EventArgs e)
  {
  
      if (0 &gt; DateTime.Compare(DateTime.Now,
         DateTime.Parse(Session["timeout"].ToString())))
      {
          int hrs = (((Int32)DateTime.Parse(Session["timeout"].
          ToString()).Subtract(DateTime.Now).TotalMinutes)) / 60;
  
          int mins = (((Int32)DateTime.Parse(Session["timeout"].
          ToString()).Subtract(DateTime.Now).TotalMinutes)) % 60;
  
          int seconds = (((Int32)DateTime.Parse(Session["timeout"].
          ToString()).Subtract(DateTime.Now).TotalSeconds)) % 60;
  
  
          lbltimer.Text = "Time left is " + hrs.ToString() + " : " + mins.ToString() + " : " + seconds.ToString();
  
          if (mins == 1 &amp;&amp; seconds == 0 &amp;&amp; hrs == 0)
          {
              lbltimer.Text = "Please submit test 1min left";
          }
          else if (hrs == 0 &amp;&amp; mins == 0 &amp;&amp; seconds == 0)
          {
              lbltimer.Text = "Test Time Over";
          }
      }
  }
  </code></pre>