title: Bind SC Images in Sitecore
body: <p>I'm having a repeater control and want to bind Images to the sc control for <code>onitemdatabound</code> event. </p>
  
  <p>My markup is:</p>
  
  <pre><code>&lt;sc:Link runat="server" ID="sclnk" Field="#" rel="iframe-960-540"&gt;
  &lt;sc:image id="scimage" runat="Server" field="#"&gt;
  &lt;/sc:image&gt;
  &lt;/sc:Link&gt;
  </code></pre>
  
  <p>And my code is:</p>
  
  <pre><code>Sitecore.Web.UI.WebControls.Link scBannerLink = e.Item.FindControl("sclnk") as Sitecore.Web.UI.WebControls.Link;
  if (scBannerLink != null)
  {
      scBannerLink.DataBind(promoItem.ID.ToString(), promoItem.PromoLink.Field.InnerField.Name);
  
  }
  Sitecore.Web.UI.WebControls.Image scPromoImage = e.Item.FindControl("scimage") as Sitecore.Web.UI.WebControls.Image;
  
  if (scPromoImage != null)
  {
      scPromoImage.DataBind(promoItem.ID.ToString(), promoItem.PromoImage.Field.InnerField.Name);
  }
  </code></pre>
  
  <p>I'm not getting any error but not diaplaying images</p>