title: How to assign image url programmatically in code behind?
body: <p>I'm using file uploader to upload an image, i'm saving it in a directory and the path to that image is saved in a database. When i try to retrieve it on my web page, it does retrieve the image successfully but as i  assign that path to the url of image control in asp.net it gives an error saying File does not exist at remote server location. Any help? </p>
  
  <pre><code>&lt;div id="user_pic"&gt;
  
            &lt;img id="ImageMap1" src="~/App_Themes/Theme/UserPics/logo.png" /&gt;
  
          &lt;/div&gt;
  </code></pre>
  
  <p>Error:</p>
  
  <p>Server Error in '/WebSite2' Application.</p>
  
  <p>The resource cannot be found.</p>
  
  <p>Description: HTTP 404. The resource you are looking for (or one of its dependencies) could have been removed, had its name changed, or is temporarily unavailable.  Please review the following URL and make sure that it is spelled correctly. </p>
  
  <p>Requested URL: /WebSite2/App_Themes/Theme/UserPics/logo.png</p>