我们如何在asp.net中使用c#下载创建的pdf文件 [英] how can we download the created pdf file with c# in asp.net
本文介绍了我们如何在asp.net中使用c#下载创建的pdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
请告诉我在asp.net中使用c#下载创建的pdf文件的代码.
please tell me the code of download the created pdf file with c# in asp.net
推荐答案
下载?什么,从客户端呢?
Download? What, from the client side?
<a href="myDocument.pdf">Download the document</a>
如果需要使用.NET代码通过HTTP或FTP在服务器端下载任何内容,则可以使用System.Net.HttpWebRequest
或System.Net.FtpWebRequest
.
例如,请参阅我过去的解决方案:
FTP:下载文件 [如何从Internet下载文件 [ ^ ].
If you need to download anything on server side via HTTP or FTP using .NET code, you can use System.Net.HttpWebRequest
or System.Net.FtpWebRequest
.
See, for example, my past solutions:
FTP: Download Files[^],
how to download a file from internet[^].
检查此 ^ ].
这篇关于我们如何在asp.net中使用c#下载创建的pdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文