hello programers
i made upload pic from my pc to the project folder so i need to diplay this pic on web page
i m using ASP.net with Vb
Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click
If Me.FileUpload1.PostedFile.FileName = Nothing Then
Me.Label3.Text = "nothing choosed to upload "
Exit Sub
End If
Dim fpath As String = Server.MapPath("imgs") & "\" & IO.Path.GetFileName(FileUpload1.PostedFile.FileName)
IO.Path.GetExtension(fpath)
Me.Label3.Text = "successful"
Exit Sub
If FileUpload1.PostedFile.InputStream.Length > 372000 Then
Me.Label3.Text = "it is too long "
Exit Sub
End If
If IO.File.Exists(fpath) = True Then
Me.Label3.Text = "the file is exist try another name "
Exit Sub
End If
FileUpload1.PostedFile.SaveAs(fpath)
End Sub
so how can i call the pic i had uploaded to the website folder and show it in the web page , or i must save it on a database ,
hope i can find answer here :)