Relative path from a root operator ("~") address in code behind
<p>Server controls like Image.ImageUrl make this very easy, but trying to achieve the same thing in code behind to an IMG html control is not that straightforward. </p>

<p>For example using an Asp:Image server control and setting ImageUrl property to "~/Images/Test.jpg" works fine no matter what directory i place the code in. (asp.net transforms tilde directory to relative) </p>

<p>How can i do the same in code behind? when i am trying to create an HTML IMG control?</p>
