Click here to Skip to main content
14,924,006 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
i'm using file upload control
on submit click my image having been save in uploads folder
but i'm unable to find the image preview on control image 1
please help me in diplaying preview

Protected Sub Page_Load(ByVal sender As Object, ByVal e As EventArgs) Handles Me.Load
        If IsPostBack = True Then
<pre lang="vb">Dim ext As String = Path.GetExtension(FileUpload1.FileName)
           Dim newfile As String = txtEmployeeid.Text + ext
           If FileUpload1.HasFile Then
               Dim theFileName As String = Path.Combine(Server.MapPath(&quot;~/Uploads&quot;), newfile)
               If File.Exists(theFileName) Then
               End If
           End If</pre>

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900