title: HTML img and ASP.NET Image and relative paths
body: <p>What is the correct way to reference an image in ASP.NET for live deployment on IIS?</p>
  
  <p>The following works in dev and production:</p>
  
  <pre><code>&lt;asp:ImageButton ID="ibnEdit" runat="server" OnClick="ibnEdit_Click" ImageUrl="~/App_Themes/Default/images/one.png" Visible="false" ToolTip="Edit" /&gt;
  </code></pre>
  
  <p>The following doesn't work in either: (why not?)</p>
  
  <pre><code>&lt;img src="~/App_Themes/Default/images/two.gif" /&gt;
  </code></pre>
  
  <p>The following works in dev but not in production:</p>
  
  <pre><code>&lt;img src="../App_Themes/Default/images/two.gif" /&gt;
  </code></pre>