title: Increment of +1 for int variable
body: <p>I am trying to make an int variable automatically increase itself by 1 each time I click on an aspx button.</p>
  
  <pre><code>protected void btn_Click(object sender, EventArgs e)
      {
        int UserID = 0;
        for(int i =0; i&lt;9999; i ++) {
           userID++;
         }
  
       lbNumber.Text = UserID.toString();
  }
  </code></pre>
  
  <p>It always comes out as 9999. I would like it to be 1 on the first click, 2 on the second click, etc.
  Sorry for asking such a simple question, but I do not know how or what to search on this forum to get the right answer.</p>