摘要:
可以看出,app.config和web.config一样,嗯,它也是一个XML文件。那怎么对这个文件中的元素进行读取操作呢?很简单,来看代码: string strPath = System.Configuration.ConfigurationSettings.AppSettings["ImgPa 阅读全文
阅读排行榜
C# 缓存操作类
2016-09-14 09:29 by newbirth, 4832 阅读, 收藏,
摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Web; using System.Web.Caching; namespace HuaTong.General.Utility { /// /// 缓存操作,默认缓存1分钟 ... 阅读全文
C#设置System.Net.ServicePointManager.DefaultConnectionLimit,突破Http协议的并发连接数限制
2016-09-26 12:37 by newbirth, 4606 阅读, 收藏,
摘要:
在Http协议中,规定了同个Http请求的并发连接数最大为2. 这个数值,可谓是太小了。 而目前的浏览器,已基本不再遵循这个限制,但是Dot Net平台上的 System.Net 还是默认遵循了这个标准的。 从而造成了,在使用HttpWebRequset 或者 WebClient 利用多线程的方式, 阅读全文
c# winform 中DataGridView绑定List<T> 不能显示数据
2018-06-20 13:57 by newbirth, 4602 阅读, 收藏,
摘要:
遇到问题 DataGridView绑定List后,List更新后再次绑定不显示数据 datagridview 绑定数据源的时候 用List是不能显示修改内容的。。要用binginglist<T> 转。 datagridview.datasource=new binginglist<T>(new li 阅读全文
c# 通过文件夹共享复制文件到服务器
2017-06-26 09:58 by newbirth, 3976 阅读, 收藏,
摘要:
public static string[] GetFileNames(string directoryPath, string searchName) { return Directory.GetFiles(directoryPath, searchName, SearchOption.AllDirectories); } ... 阅读全文
浙公网安备 33010602011771号