title: How to add controls to datalist in code behind, not in aspx design?
body: <pre><code>using System;
  using System.Collections.Generic;
  using System.Linq;
  using System.Web;
  using System.Web.UI;
  using System.Web.UI.WebControls;
  using MyWeb.Data;
  using MyWeb.Common;
  using MyWeb.Business;
  using AjaxPro;
  using System.Text;
  
  &lt;asp:DataList ID="DataList1" runat="server" RepeatLayout="Flow"&gt;
                  &lt;ItemTemplate&gt;
  
                      &lt;div class="m_status"&gt;
                  &lt;div class="ava"&gt;
                      &lt;a href="#"&gt;
                          &lt;asp:Image ID="Image1" runat="server" ImageUrl='&lt;%# Eval("AvatarUS") %&gt;' 
                          CssClass="ava_medium"/&gt;&lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class="sta_content"&gt;
                      &lt;div class="sta_title"&gt;
  
                          &lt;p class="sta_detail"&gt;
                              &lt;asp:Literal ID="Literal1" runat="server" Text='&lt;%# Eval("Detail") %&gt;'&gt;&lt;/asp:Literal&gt;
                              &lt;/p&gt;
                          &lt;div class="function"&gt;
                              &lt;a class="sta_like left" href="#"&gt;Thích&lt;/a&gt;
                              &lt;a class="sta_cmt left" href="#"&gt;Bình luận&lt;/a&gt;
                              &lt;a class="sta_share left" href="#"&gt;Chia sẻ&lt;/a&gt;
                          &lt;/div&gt;
                      &lt;/div&gt;
  
                      &lt;/div&gt;                                                  
                  &lt;/div&gt;
                  &lt;/ItemTemplate&gt;
                  &lt;/asp:DataList&gt;
  </code></pre>
  
  <p>I want to add a DataList like that in code behind(Default.aspx.cs)<br>
  How to make it?</p>