title: Programmatically put labels in div or label
body: <p>I would like to set the value of my label (or div) as an element and not text.</p>
  
  <p>Example, this code creates a list of checkboxes as followed in this post <a href="https://stackoverflow.com/questions/17714705/how-to-use-checkbox-inside-select-option">How to use Checkbox inside Select Option</a> :</p>
  
  <pre><code>&lt;asp:Label runat="server" id="checkboxesList"&gt;
    &lt;label for="one"&gt;
       &lt;input type="checkbox" id="one" /&gt;First checkbox&lt;/label&gt;
    &lt;label for="two"&gt;
      &lt;input type="checkbox" id="two" /&gt;Second checkbox&lt;/label&gt;
    &lt;label for="three"&gt;
      &lt;input type="checkbox" id="three" /&gt;Third checkbox&lt;/label&gt;
  &lt;/asp:Label&gt;
  </code></pre>
  
  <p>I need to create my List in CodeBehind and not directly in ASPX I tried :</p>
  
  <pre><code>checkboxesList.Text = "&lt;label for=\"one\"&gt; &lt; input type = \"checkbox\" id = \"one\" /&gt; First checkbox &lt;/ label &gt; &lt;label for= \"two\" &gt; &lt; input type = \"checkbox\" id = \"two\" /&gt; Second checkbox &lt;/ label &gt;";
  </code></pre>
  
  <p>Doing so it only prints as a string and do not create the differents labels.
  How to implement it from the code behind having just :</p>
  
  <pre><code>&lt;asp:Label runat="server" id="checkboxesList"&gt;
  &lt;/asp:Label&gt;
  </code></pre>