title: Add custom attribute to an HTML input element with C#
body: <p>I'm using the following method to add a custom attribute to a check box:</p>
  
  <pre><code>CheckBox chkBx = new CheckBox();
  chkBx.ID = "chk" + n;
  chkBx.Attributes["itemname"] = strtemPath;
  </code></pre>
  
  <p>But as a result I'm getting the following HTML:</p>
  
  <pre><code>&lt;span itemname="Some folder"&gt;&lt;input id="MainContent_chk0" type="checkbox" name="MasterPg$MainContent$chk0" /&gt;&lt;/span&gt;
  </code></pre>
  
  <p>where I'm expecting this:</p>
  
  <pre><code>&lt;input id="MainContent_chk0" type="checkbox" name="MasterPg$MainContent$chk0" itemname="Some folder" /&gt;
  </code></pre>
  
  <p>Any idea how to correct the C# code to get my expected result?</p>