How to apply css for dynamically adding button inside datalist in asp.net c# 
<p>How to apply css for dynamically adding button inside datalist?</p>

<pre><code>List&lt;Button&gt; buttons = new List&lt;Button&gt;(); 
Button b1 = new Button(); 
b1.Text = "First"; 
b1.Attributes.CssStyle["CssClass"] = "button"; 
buttons.Add(b1);
</code></pre>
