Image not showing up on ASP.NET
<p>I have an image in a folder, when I try to set the <code>ImageUrl</code> from the behind code I get a little symbol that looks broken in half instead of the picture. If I set the <code>ImageUrl</code> in the Image properties it works. What am I doing wrong?</p>

<pre><code>var imagepath = Server.MapPath(@"~/images/candidates/small/image.jpg");
System.Drawing.Image image = System.Drawing.Image.FromFile(imagepath);
int ActualWidth = image.Width;
int ActualHeight = image.Height;
candImage.ImageUrl = imagepath;
candImage.Height = ActualHeight;
</code></pre>
