title: Using javascript function at the same time with asp:Timer
body: <pre><code>&lt;p&gt;&lt;b&gt; Completed: &lt;asp:Label ID="completedPercentageLabel" runat="server"&gt;&lt;/asp:Label&gt;%&lt;/b&gt;&lt;/p&gt;    
  
  &lt;script&gt;
          function updateBar()
          {
              var bar = document.getElementById("CompletionBar");
              var width = document.getElementById("completedPercentageLabel").innerText;
              bar.style.width = width + '%';
              document.getElementById("Percentage").innerHTML = width + '%';
          }
          setInterval(updateBar, 1000);
      &lt;/script&gt;
  
      &lt;asp:Timer ID="Timer1" runat="server" Interval="60000"&gt;&lt;/asp:Timer&gt;
  </code></pre>
  
  <p>I would like to ask You, how could it be possible to update my loading bar every minute, whenever Timer says to update and not have Label displayed at all. I tried finding a way to link "width" variable to asp to have it obey same rules as label, but without much success.</p>
  
  <p>Thanks in advance.</p>