title: Dynamically creating multiple label and assigning values to it
body: <p>I want to create multiple label dynamically and assign values to it, </p>
  
  <p>I have created multiple radio button list and assigned values to it but when i use the same for label only one label control appears and the label takes the last value in the loop as text.</p>
  
  <p>What i have tried is </p>
  
  <pre><code>Dim table1 As New HtmlTable
  For j As Integer = 0 To 2  
      Dim row As New HtmlTableRow()
  
      Dim cell1 As New HtmlTableCell()
      Dim cell2 As New HtmlTableCell()
  
      Dim rbl As New RadioButtonList()
      Dim lbl1 As New Label
  
  
     For RowIndex As Integer = 0 To 2
          rbl.ID = RowIndex
          rbl.Items.Add(DataSet columnvalues)
  
          lbl1.ID = Convert.ToInt32(j) ' The problem is in this two line
          lbl1.Text = (DataSet label values)
     Next
  
      cell1.Controls.Add(rbl)
      cell2.Controls.Add(lbl1)
  
  
      row.Cells.Add(cell1)
      row.Cells.Add(cell2)
  
     table1.Rows.Add(row)
  
  Next
  ControlsPlaceHolder.Controls.Add(table1)
  </code></pre>