title: how to append a textbox to a checkbox list item which is coming from a sharepoint list on select of a list item
body: <p>I have a custom input form some of the fields are coming from a list in SharePoint 2010. I have a check box control which is populated by a list item. there are around 10 rows. </p>
  
  <p>Now I want when a user select a check box list item, a text box should appear beside it. for example I have a list called subjects, which have column name title and the entries are physics, maths, chem etc... Now when a user select physics from the check box list a text-box should appear beside it and user should be able to write on text box.</p>
  
  <pre><code>protected void chkbox1_SelectedIndexChanged(object sender, EventArgs e)
  {
     foreach (ListItem checkbox in chkbox1.Items)
     {
        //If this particular item is checked
        if (checkbox.selected)
        {
           checkbox.Text = String.Format("{0}&lt;input id=\"TextBox{0}\" name=\"TextBox{0}\" / &gt;", checkbox.Value);
           //TextBox tb = new TextBox { ID = checkbox.Value };
           //Input.Controls.Add(tb);
        }
     }
  }
  </code></pre>