随笔分类 -  .net 问题集

摘要:1.停止线程池后重新开启后,AutoResetEvent的互斥操作失效,但挂起/解除挂起不影响。测试代码:demo 阅读全文
posted @ 2010-10-14 17:31 Ryan R 阅读(180) 评论(0) 推荐(0)
摘要:用System.Web.HttpUtility.UrlEncode或者Server.UrlEncode方法,不过要2个参数都写上:用HttpUtility.UrlPathEncode方法,只要写一个参数就可以了:  在“asp.net下载大文件代码”中使用了方法2 阅读全文
posted @ 2010-06-30 12:26 Ryan R 阅读(354) 评论(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 阅读(312) 评论(0) 推荐(0)