Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
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
Join the community of 500,000 technology professionals and ask your questions.