更新时间:2023-11-18 22:25:40
您可以强制出现文件保存对话框.请参见此处 [ ^ ].
You can force the file save dialog to appear. See here[^].
在ASP.NET中下载文件并进行跟踪成功/失败的状态 [^ ]
在ASP.NET 2.0中动态呈现下载内容 [
File Download in ASP.NET and Tracking the Status of Success/Failure of Download[^]
Dynamically Render Download Contents in ASP.NET 2.0[^]
我认为您不想要简单的东西例如提供指向将要下载的文件的链接?这将是最简单的方法.您可以使用CSS给出您想要的任何外观.
否则, http://msdn.microsoft. com/en-us/library/system.web.httpresponse.binarywrite%28v = vs.80%29.aspx [
I assume you don''t want something simple like providing a link to the file that will be downloaded? This would be the simplest way. You could use CSS to give just about any look you would like.
Otherwise, http://msdn.microsoft.com/en-us/library/system.web.httpresponse.binarywrite%28v=vs.80%29.aspx[^]