如何在ASP.NET中创建文件下载按钮? [英] How to create a button for file download in ASP.NET?
本文介绍了如何在ASP.NET中创建文件下载按钮?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的服务器计算机文件夹中存有一些文件( txtfile
)。当用户想要下载此文件时。用户可以使用此按钮下载文件。
如何创建按钮?
谢谢...
I have some files(txtfile
) stored on my Server machine Folder. When a user wants to download This File. This Button can be used by users to download the file.
How to create this Button?
Thank you ...
推荐答案
访问这里....
在asp.net中创建下载按钮 [ ^ ]
Visit here....
to create download button in asp.net[^]
试试这个
ImageButton上的文件下载或按钮单击 [ ^ ]
这是如此简单
.. a href =C:\ GiveYourPath \txtfile.txt>在此下载
你需要提一下你的文件路径它会给你下载链接
完成你的href链接
how-to-use-the-download-attribute / [ ^ ]
download_link.htm [ ^ ]
This is so simple
..a href="C:\GiveYourPath\txtfile.txt">Download Here
you need to mention your file path it will give you download link
complete your href link
how-to-use-the-download-attribute/[^]
download_link.htm[^]
这篇关于如何在ASP.NET中创建文件下载按钮?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文