使用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 useFileUpload
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[^]