我想在VB.NET中使用FileUpload上传文件 [英] I want to upload a file using FileUpload in VB.NET

查看:564
本文介绍了我想在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.


这篇关于我想在VB.NET中使用FileUpload上传文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆