摘要: 用System.Web.HttpUtility.UrlEncode或者Server.UrlEncode方法,不过要2个参数都写上:用HttpUtility.UrlPathEncode方法,只要写一个参数就可以了:  在“asp.net下载大文件代码”中使用了方法2 阅读全文
posted @ 2010-06-30 12:26 Ryan R 阅读(346) 评论(0) 推荐(0) 编辑
摘要: public void Down(string filepath, HttpResponse aResponse) { System.IO.Stream iStream = null; // Buffer to read 10K bytes in chunk: byte[] buffer = new Byte[10000]; // Length of the file: int length; /... 阅读全文
posted @ 2010-06-30 12:22 Ryan R 阅读(308) 评论(0) 推荐(0) 编辑