PeopleSoft Adoption Made Smooth & Simple!
On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool. Claim Your Free WalkMe Account Now
Protected Sub uploadbutton_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles uploadbutton.Click If FileUpload1.HasFile Then Try Dim filename As String = Path.GetFileName(FileUpload1.FileName) FileUpload1.SaveAs(HttpContext.Current.Server.MapPath("C:\FileDestination") & filename) statuslabel.Text = "Upload status: File uploaded!" Catch ex As Exception statuslabel.Text = "Upload status: The file could not be uploaded. The following error occured: " + ex.Message End Try End If End Sub End Class
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.