title: How to get the path to image stored in content folder .net
body: <p>I'm using this code to get an image from the Content/img folder in visual studio:</p>
  
  <pre><code>Image image = Image.FromFile(@"~\Content\img\toendra.JPG");
  </code></pre>
  
  <p>This gives me the error that the file is not found. However if I give the absolute path to the image, it works:</p>
  
  <pre><code>Image image = Image.FromFile(@"C:\Users\Stijn\Source\Repos\groep11DotNet\p2groep11.Net\Content\img\toendra.JPG");
  </code></pre>
  
  <p>What is wrong with my relative path?</p>