Setting an Image control source to an image in the server
<p>I'm trying to show an image on my Image control but it isn't working. I'm using it as a screenshot preview basically. I have the bitmap save to the Images folder in the server path, and then I set the ImageUrl for the control to that saved image location. Here is the code I have. This code executes on a button click:</p>

<pre><code>img.Save(Server.MapPath("~/Images/") + "test.png", ImageFormat.Png);
Image1.ImageUrl = Server.MapPath("~/Images/") + "test.png";
Image1.DataBind();
</code></pre>

<p>No exceptions are caught, and the image is saving correctly in the path. </p>
