title: Add Image Control inside DataList Template through C#
body: <p>I want to insert asp image control inside datalist Itemtemplate through C#. Here is the code below i am currently trying but it didn't work.</p>
  
  <pre><code>DataList DataListCampaign = new DataList();
  DataListCampaign.RepeatLayout = RepeatLayout.Flow ;
  DataListCampaign.RepeatDirection = System.Web.UI.WebControls.RepeatDirection.Horizontal;
  DataListCampaign.DataSource = CampTabImage;
  DataListCampaign.DataBind();
  Image TabImages = new Image();
  TabImages.ID = "TabImages";
  DataListCampaign.Controls.Add(TabImages);
  TabContainer1.Tabs[k].Controls.Add(DataListCampaign);
  </code></pre>
  
  <p>Where is the problem??</p>