dynamic textbox near label in C#
<p>Sorry for reposting this but I haven't figure out how to do it.</p>

<pre><code>string str = string.Empty;

 foreach (ListItem item in this.CheckBoxList1.Items)
    {
       if (item.Selected)
           {
              str += item.Value + "&lt;br&gt;&lt;br&gt;";
              TextBox txt1 = new TextBox();
              form1.Controls.Add(txt1);

           }
    }

 lbl1.Text = str;
</code></pre>

<p>This brings up a textbox each time I check a value but I want to bring the textbox near each selected value that I retain in the label. So value1 textbox1, value2 textbox2....It's asp.net web application.</p>
