how to upload files using vb.net

how to upload files using vb.net?


Thanks
RajeshPixelAsked:
Who is Participating?
 
DhaestConnect With a Mentor Commented:
ASP.NET 2.0 FileUpload Server Control
http://www.codeguru.com/csharp/sample_chapter/article.php/c12593

Performing a File Upload using ASP.NET 2.0 and VB .NET
http://www.aspnettutorials.com/tutorials/network/net-fileupload-aspnet2-vb.aspx

CodeSnip: Working with FileUpload Control
http://aspalliance.com/761

0
 
JPJ78Connect With a Mentor Commented:
Use the control FileUpload.

<asp:FileUpload ID="FileUpload1" runat="server" />
<asp:Button ID="btnUpload" runat="server" Text="Upload" />

Private Sub btnUpload_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles btnUpload.Click
    FileUpload1.SaveAs("filename.zip")
End Sub
0
 
DhaestConnect With a Mentor Commented:
Using Visual Basic .NET to Upload a File to a Web Server in ASP.NET
http://www.codeguru.com/csharp/.net/net_asp/files/article.php/c5335

How to upload a file to a Web server in ASP.NET by using Visual Basic .NET
http://support.microsoft.com/kb/323245
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.