title: Loop through Textboxes in asp.net and fill with array of string
body: <p>This is my code</p>
  
  <pre><code>  Dim str As String = "str1,str2"
      Dim array() As String = str.Split(",")
      Dim MyListOfTextBoxes() As TextBox = {TextBox1, TextBox2, TextBox3}
      For index = 0 To array.Count - 1
          For i = 0 To MyListOfTextBoxes.Length - 1
              MyListOfTextBoxes(i).Text = array(index)
          Next
      Next
  </code></pre>
  
  <p>I have 5 textboxes. I want to fill just textbox1 and textbox2 with array value. because no I have to word. but when I run the code <code>"str1"</code> repetition  on <code>textbox1</code>,<code>textbox2</code> and <code>textbox3</code>.</p>