随笔分类 -  C#

摘要://取得上个月 int lastMonth = DateTime.Now.Month - 1 == 0 ? 12 : DateTime.Now.Month - 1; //取得上个月月初日期 string lastMonthDate = (DateTime.Now.Month - 1 == 0 ? Convert.ToString(DateTime.Now.Year - 1)... 阅读全文
posted @ 2008-01-09 16:17 狐狸马三 阅读(337) 评论(0) 推荐(0)
摘要:(http://www.ithr.org.cn/blogs/index.php?m=200611) 有三种解决方法: 开启 Terminal Services 服务。天知道为什么调试器还需要这个服务?我向来都是禁用此服务的。 在项目属性的 “Debug” (调试) 一项里,把 “Enable the Visual Studio hosting process” (启用Visual Studio ... 阅读全文
posted @ 2007-09-27 17:31 狐狸马三 阅读(352) 评论(0) 推荐(0)
摘要:引用一篇文章:http://blog.csdn.net/davemin/archive/2006/04/19/669361.aspx StrongName是一种.Net提供的身份识别机制。它基于一些加密算法,例如RSA等,对程序集实施加密或称作签名。从而使得我们可以鉴别某个程序集的身份(该程序集是谁发布的)。其实,从本质上来说,StrongName和证书机制(例如X.509)的身份识别原理是相同的... 阅读全文
posted @ 2007-09-20 09:29 狐狸马三 阅读(821) 评论(3) 推荐(0)
摘要:private void EnableUser(DirectoryEntry de) { int val = (int)de.Properties["userAccountControl"].Value; de.Properties["userAccountControl"].Value = val & ~Convert.ToInt32( ADHelper.AD... 阅读全文
posted @ 2007-08-21 08:57 狐狸马三 阅读(221) 评论(0) 推荐(0)
摘要:防止从DataList中导出文件时出现乱码(包括文件名和文件内容) 阅读全文
posted @ 2006-09-25 14:44 狐狸马三 阅读(1047) 评论(0) 推荐(0)