title: How Am i supposed to bind my variable to a img attribute in aspx page
body: <p><code>&lt;%=Eval(src) %&gt;</code> is not working.</p>
  
  <pre><code>&lt;img id="Img1" src="&lt;%=Eval( src) %&gt;" runat="server" alt="" /&gt;
  </code></pre>
  
  <p>Code Behind</p>
  
  <pre><code>public partial class image_from_cb : System.Web.UI.Page
  {
      public string src="";
  
      protected void Page_Load(object sender, EventArgs e)
      {
          src = "~/final.jpg";
      }
  }
  </code></pre>
  
  <p>I know i can do this with Attribute.Add or with ASPIMAGE , but i was just wondering why &lt;% %> is not working</p>