Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.
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.