摘要:
用System.Web.HttpUtility.UrlEncode或者Server.UrlEncode方法,不过要2个参数都写上:用HttpUtility.UrlPathEncode方法,只要写一个参数就可以了: 在“asp.net下载大文件代码”中使用了方法2 阅读全文
摘要:
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; /... 阅读全文