title: Print array elements in a label
body: <p>Every time I click on the button, I get the result as "5". I would like to iterate through an array and display all the elements in a <code>resultLabel</code>. </p>
  
  <pre><code>protected void okButton_Click(object sender, EventArgs e)
  {
      int[] myArray = new int[5] { 1, 2, 3, 4, 5 };
      for (int i = 0; i &lt; myArray.Length; i++)
      {
          resultLabel.Text = String.Join(" ", myArray[i].ToString());
      }
  }
  </code></pre>