使用ASP.net上传文件 [英] File upload with ASP.net

查看:100
本文介绍了使用ASP.net上传文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试创建一个可以上传文件的屏幕.
这是东西.我不想保存在与网站相同的位置.但要保存在其他网站文件夹中.

可以做到吗

使用上载控件从Website1获取文件
并将其存储在website2文件夹中

谢谢

I am trying to create the screen from which I can upload file.
Here is the thing. I don''t want to save on same location as website. But Want to save on different website folder.

Is is possible to do that

Getfile from Website1 using upload control
and store it on website2 folder

Thank you

推荐答案

如果您的Web应用程序具有您要写入文件的文件夹的权限,则只需将文件保存到代码中的该文件夹中在后面.继续进行编码.如果您遇到问题,请随时更新您的问题,如果出现语法问题,我们可以为您提供帮助.
干杯.
If your web application has permission to the folder where you want to write the file, then you simply have to save the file to that folder in your code behind. Go forth and code it. If you run into problems with that, feel free to update your question and we can help you with syntax issues if they arise.
Cheers.


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

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