upload an view image
<p>Problem is i set the image url clicking lnkFV link button. but image not viewed on the page.<br />
source</p>

<pre><code>&lt;tr&gt;
     &lt;td style="width: 160px; height: 15px"&gt;
         &lt;asp:Label ID="Label4" runat="server" Text="Style Front View"&gt;
         &lt;/asp:Label&gt;
    &lt;/td&gt;
     &lt;td style="width: 222px; height: 15px"&gt;
          &lt;asp:FileUpload id="filFrontView" runat="server"&gt;
          &lt;/asp:FileUpload&gt;
    &lt;/td&gt;
    &lt;td style="width: 72px; height: 15px"&gt;
           &lt;asp:LinkButton id="lnkFV" runat="server" OnClick="lnkFV_Click"&gt;
           View image&lt;/asp:LinkButton&gt;
    &lt;/td&gt;
    &lt;td colspan="3" rowspan="1"&gt;
         &lt;asp:Image id="Image1" runat="server"&gt;
         &lt;/asp:Image&gt;&lt;/td&gt;
  &lt;/tr&gt;
</code></pre>

<p>asp code</p>

<pre><code>protected void lnkFV_Click(object sender, EventArgs e)
{
  // new Help().Perform("Do you really want to proceed");
    try
    {
        file = Path.GetFileName(filFrontView.PostedFile.FileName);
       // file = Path.GetFileName(filFrontView.PostedFile.FileName);
        tempF = "F:\\Visual Studio 2005\\User\\temp\\" + file;
        temp = "~\\temp\\" + file;
        filFrontView.SaveAs(Server.MapPath(temp));
       // filFrontView.SaveAs(temp);
        string filePath = MapPath(temp);
        Image1.ImageUrl = tempF; 
    }
    catch (Exception ee)
    {
    }
}
</code></pre>
