title: cant update label using timer
body: <p>i have a master page which uses script manager and on another page i want to show a digital clock which counts from 0 to 10 minutes.
  asp.net code:</p>
  
  <pre><code>&lt;asp:ScriptManagerProxy ID="ScriptManagerProxy1" runat="server"&gt;
  &lt;/asp:ScriptManagerProxy&gt;
  &lt;asp:Timer ID="Timer1" runat="server" Interval="5000" ontick="Timer1_Tick"&gt;
      &lt;/asp:Timer&gt;    
  &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server"&gt;
  &lt;Triggers&gt;
  &lt;asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" /&gt;
  &lt;/Triggers&gt;
  &lt;ContentTemplate&gt;
   &lt;asp:Label ID="Label1" runat="server" Text=""&gt;&lt;/asp:Label&gt;
  &lt;/ContentTemplate&gt;
  &lt;/asp:UpdatePanel&gt;
  </code></pre>
  
  <p>C# code:</p>
  
  <pre><code>int min=0,sec=0;
   protected void Timer1_Tick(object sender, EventArgs e)
   { 
      if (sec == 55)
      {
          min = min + 1;
          sec = 0;
      }
      else
      {
          sec = sec + 5;
      }
      Label1.Text = min.ToString() +":"+ sec.ToString();
      if(min==10&amp;&amp;sec==0)
      {
          Timer1.Enabled=false;
          Label1.Text = "clock over!";
      }
  </code></pre>
  
  <p>the page starts with 0:5 and doesn't change at all. pls point out if there is an error in d code!</p>