在asp.net中上传和下载文件 [英] file uploading and downloading in asp.net

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

问题描述

如何使用asp.net上载和下载文件(文档)

How to upload & download files(Documents) using asp.net

推荐答案

此信息可在网上广泛获得.您可以通过放置文件上传控件(内置的控件或第三方Flash或Java控件)来上传文件.您可以通过使用正确的MIME类型将文件写入用户来下载文件.如果您不了解其中的任何一个,那就是为什么您应该阅读文章来回答我完全不知道某件事情是如何工作的"问题,并回答这个问题的论坛是我尝试了但是但是"无法正常工作.
This information is widely available online. You upload a file by putting a file upload control, either the built in one, or a third party flash or Java one. You download a file by writing it with the correct MIME type to the user. If you didn''t understand any of that, that''s why you should be reading articles to answer ''I have no idea how something works at all'' questions, and forums to answer ''I tried this but it''s not working as I''d hoped'' questions.


用于文件上传
您可以使用文件上载控件,并使用PostFile.SaveAS()方法将上载的文件保存到服务器.
点击我 [通过我来 [
For File Uploading
you can use File upload control, and use PostedFile.SaveAS() method to save the uploaded file to server.
Click me[^]

-----

For downloading file
Go through me[^]


关注此链接
follow this link
http://forums.asp.net/t/1068814.aspx/1?Opening+a+Word+or+PDF+file+from+a+webpage+C+VS2005+APS+2+0[^]


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

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