Upload file with ASP.NET

emember to import the system.file namespace
Also you will have to add a upload file server control to your html code. Like this.



The Code :

If FileUpload1.HasFile Then
FileUpload1.SaveAs(Server.MapPath("The_Name_Of_The_File"))
End If

0 comments:

Post a Comment