从asp.net下载文件 [英] Downloading files from asp.net

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

问题描述

Hi Friends

我正在从asp.net按钮单击下载不同的文件.当单击该按钮时,它进入了通用处理程序文件download.ashx.但是我感觉下载时会出现问题.有人建议我们在下载时使用XML文件.但是我不知道该怎么办.

谢谢

Hi Friends

I am downloading the diffrent files from the asp.net button click . And when the button is clicked it went to the generic handler file download.ashx . But i am feeling problem when the download will occur .Someone suggest we to use the XML file when the download will occur . But i dont know how to do it .

Thanks

推荐答案

/您说的是废话. XML文件不会更改任何内容.如果文件没有下载,那么您需要找出问题所在.如果它们很大,它们会开始下载吗?如果他们这样做,那就是服务器问题.如果没有,您如何发送它们?您是将它们读入内存还是从硬盘驱动器中流式传输?也许您正在引起内存错误?
/what you said is nonsense. An XML file won''t change anything. If the files are not downloading, then you need to work out what the issue is. If they are big, do they start to download ? If they do, then it''s a server issue. If they don''t, how are you sending them ? Are you reading them in to memory or just streaming from the hard drive ? Perhaps you''re causing a memory error ?


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

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