dynamic textbox in c#
<p>I have the following code:</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();

           }
    }

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

<p>What I want is for each data checked I want to have a textbox. When I loop through the checkbox List the label takes my values and display them but the textbox not. How can I do it?</p>
