使用asp.net上传和下载文件 [英] Upload and Dowload a file using asp.net

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

问题描述

大家好,

我正在开发一个Web应用程序,用户必须将他的简历上传到数据库中以维护他的信息,此后,我想显示该简历的用户详细信息.现在在网格视图中,我保留了一个链接,用户可以单击该链接要下载他上传的简历...我如何在asp.net中做到这一点?

Hi All,

I am developing an web application where user has to upload his resume into the database for maintaining his informations and after that i want to show the user details along with that resume..Now in grid view i have kept one link where user can click that to download the resume what he has uploaded...How can i do that in asp.net ???

推荐答案

1.要上传简历,您可以使用FileUpload control.
2.如果要将简历显示为网页,则上传后可以阅读HTML编码的文件并将其显示在网页上.
3.如果要详细显示信息,则必须从用户那里获取数据.您可以为此使用ADO.NET. 帮助 [
1. To upload the resume you can use FileUpload control.
2. If you want to display the resume as a web page then after upload you can read the file HTML encode it and show it on web page.
3. In case you want to display information in a detailed manner then you will have to get the data from user. you can use ADO.NET for that. help[^]
4. TO download simply give a link to the virtual path of the uploaded resume.


请参阅以下内容:

http://nareshkamuni.blogspot.in/2012/04/upload- and-download-file-from-gridview.html [ ^ ]

http://forums.asp.net/t/1697963.aspx/1 [ ^ ]
Refer these:

http://nareshkamuni.blogspot.in/2012/04/upload-and-download-file-from-gridview.html[^]

http://forums.asp.net/t/1697963.aspx/1[^]


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

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