title: programmatically add css class to ListItem
body: <p>I need to produce with asp.net controls this structure, but ListItem doesn't allow add properties and classes.</p>
  
  <p>What is the best way to do it?</p>
  
  <pre><code>&lt;ul&gt;
   &lt;li class="1"&gt;SomeText&lt;/li&gt;
   &lt;li class="2"&gt;SomeText2&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>