title: programmatically assigning imageurl not working
body: <p>I set up my iis6 so that the images are inside of a virtual folder</p>
  
  <p>if i assign the imageurl in the .aspx it works:</p>
  
  <p>example.aspx</p>
  
  <pre><code>&lt;asp:Image ID="Image1" runat="server" ImageUrl="~/labelimages/0603142_1.jpg" /&gt;
  </code></pre>
  
  <p>there are 2 more images, when i try to assign the imageurl via codebehind to them it won't work;</p>
  
  <p>example.aspx.cs</p>
  
  <pre><code>protected void Page_Load(object sender, EventArgs e)
      {
          Image2.ImageUrl = "~/labelimages/0603142_1.jpg";
          Image3.ImageUrl = @"~/labelimages/0603142_1.jpg";
      }
  </code></pre>
  
  <p>when i test this in visual Studio it displays a placeholder Image, the links are processed correctly, source:</p>
  
  <pre><code>&lt;img id="contentMaster_ContentSub_Image1" src="labelimages/0603142_1.jpg" /&gt;
  &lt;img id="contentMaster_ContentSub_Image2" src="labelimages/0603142_1.jpg" /&gt;
  &lt;img id="contentMaster_ContentSub_Image3" src="labelimages/0603142_1.jpg" /&gt;
  </code></pre>
  
  <p>then i copy this to the server and it displays only the hardcoded picture, looking into the source:</p>
  
  <pre><code>&lt;img id="contentMaster_ContentSub_Image1" src="labelimages/0603142_1.jpg" /&gt;
  &lt;img id="contentMaster_ContentSub_Image2" src="imageurl" /&gt;
  &lt;img id="contentMaster_ContentSub_Image3" src="imageurl" /&gt;
  </code></pre>
  
  <p>not only the images aren't working, any not hardcoded links are weird.
  why isn't it working?</p>