title: how to preview uploaded image before saving it in database in image control in asp.net
body: <p>I am allowing the user to upload the image.
  as soon as user uploads the image the respective image should get displayed in image control(similar to the preview of image).
  this should be done without clicking any button</p>
  
  <pre><code>&lt;td align="right" valign="top" class="heading"&gt;Photo: &lt;/td&gt;
  &lt;td&gt;
      &lt;asp:Image ID="Image1" runat="server" /&gt;&lt;br /&gt;
      &lt;asp:FileUpload ID="FileUpload1" runat="server"/&gt;
  &lt;/td&gt;
  </code></pre>