随笔分类 - .net 问题集
摘要:1.停止线程池后重新开启后,AutoResetEvent的互斥操作失效,但挂起/解除挂起不影响。测试代码:demo
阅读全文
摘要:用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; /...
阅读全文
浙公网安备 33010602011771号