title: Using the += operator with delimiter
body: <p>I have a simple ASP.net program with a textbox, button and label control.</p>
  
  <p>On the button click event, I'm assigning the textbox text to the label text and adding to it each time using the assignment operator. I'm delimiting the values using a comma.</p>
  
  <pre><code>protected void Button1_Click(object sender, EventArgs e)
  {
      Label1.Text += TextBox1.Text + ",";
  }
  </code></pre>
  
  <p>The problem is that this code gives me an extra comma. e.g. if the values 1, 2, 3, 4 and 5 are entered in the textbox, the label text will be:</p>
  
  <pre><code>1,2,3,4,5,
  </code></pre>
  
  <p>I need it to be:</p>
  
  <pre><code>1,2,3,4,5
  </code></pre>
  
  <p>Can anybody help?</p>