我想在VB.NET中使用FileUpload上传文件
问题描述:
任何人都可以帮助我
如何在VB.NET中使用FileUpload上传文件,我想存储在本地驱动器中,即(E:\ Samp),文件格式为doc和pdf
我声明了这段代码.
Dim strfileDir As String = Server.MapPath("E:\ uno4.0 \ ReportFiles \")
Can any one help me
how to upload a file using FileUpload in VB.NET and i want to store in my local drive ie.(E:\Samp) and file formats are doc and pdf
I declared this code..
Dim strfileDir As String = Server.MapPath("E:\uno4.0\ReportFiles\")
答
使用System.Net.WebClient的UploadFile方法上传文件.
Use UploadFile method of System.Net.WebClient to upload file.