We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!
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.
|ASP.NET Calendar Control||5||47|
|Create a button class for use in all vb.net apps||5||40|
|How to set focus on a dynamic control||18||44|
|Changing existing fields in a Stored Procedure and getting them reflected in Crystal Reports||3||48|
Join the community of 500,000 technology professionals and ask your questions.