title: ASP.NET update panel updates once - then does nothing
body: <p>I'm a PHP guy learning some .NET. I am tinkering around with the UpdatePanel control for a little dashboard.</p>
  
  <p>In .aspx file, I'm using OnClick to trigger the code behind file to update the label by +1</p>
  
  <pre><code>&lt;asp:ScriptManager ID="ScriptManager1" runat="server" /&gt;
  &lt;div id="Container"&gt;
  &lt;asp:UpdatePanel runat="server" ID="UpdatePanel1" 
      OnLoad="UpdatePanel1_Load"&gt;
    &lt;ContentTemplate&gt;
        &lt;asp:Label ID="CounterOne" runat="server" Text="Label"&gt;&lt;/asp:Label&gt;
    &lt;/ContentTemplate&gt;
  
  &lt;/asp:UpdatePanel&gt;
  
  &lt;asp:Button ID="Button1" runat="server" Text="Button" OnClick="UpdatePanel1_Increment"/&gt;
  </code></pre>
  
  <p></p>
  
  <p>However, when I run it on localhost. It increments the first time I push the button, but each subsequent click does nothing.</p>
  
  <p>Here is the CodeBehind:</p>
  
  <pre><code> public void UpdatePanel1_Increment(object sender, EventArgs e)
          {
              counter = counter + 1;
              CounterOne.Text = counter.ToString();
  
          }
  </code></pre>
  
  <p>Do I need to reset something on the control? </p>
  
  <p>Thanks!</p>
  
  <p>Note: I know there are more bandwidth friendly ways to do this, but I'm just testing out some ideas...</p>