摘要: 1. /// /// 转全角的函数(SBC case)/// /// 任意字符串/// 全角字符串//////全角空格为12288,半角空格为32///其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248/// public string ToSBC(string input){ //半角转全角: char[] c = input.T... 阅读全文
posted @ 2006-05-29 16:11 upzone 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 郁闷,msn上不去,没法干活。记上最近项目中用到的一些code snippet1.查询今天的记录select datediff(dd,ConvDateTime,getdate()),* from dbo.rbConversationMaster where datediff(dd,ConvDateTime,getdate())=0 DataDiff Returns the number of da... 阅读全文
posted @ 2006-05-24 11:57 upzone 阅读(329) 评论(1) 推荐(0) 编辑
摘要: SqlCommand.Prepare()方法。在IDbCommand接口上就定义了Prepare()方法,这个方法可以把CommandType为Text的SQL语句提前在数据库中编译为一个临时的StoredProcedure然后再执行,这样对于需要多次执行的DbCommand来说,可以提高一定的执行效率:)注意:请在指定了Command的Connection之后再调用Prepare()方法。 Cr... 阅读全文
posted @ 2006-05-19 10:47 upzone 阅读(805) 评论(0) 推荐(0) 编辑
摘要: 就是一句话 :有什麽key,value的数据结构,能够实现key查到value,又可以value查到key主要是用来建立对应关系;我原来是用Dictionary m_humanInService 来存储一次会话中两个人的关系,左边不经常变,比如说m_humanInService.Add("humanA","clientA"),就是将humanA和clientA串联表示正在会话;用他来寻址确定具体发... 阅读全文
posted @ 2006-05-17 17:10 upzone 阅读(347) 评论(1) 推荐(0) 编辑
摘要: 升级到SQL Server 2005,一直没找到原来的DTS,原来现在是Integration Services 替代了原来的DTS,呵呵,当时不知道这是什麽东西,没有安装,现在补装上;今天做了个最简单的DTS数据库的复制工作1.打开Visual Studio 2005,或者从开始菜单Microsoft SQL Server 2005中打开SQL Server Business Intellige... 阅读全文
posted @ 2006-05-15 17:32 upzone 阅读(2061) 评论(0) 推荐(0) 编辑
摘要: 对于运行多个.NET Framework 版本的ASP.NET来说,有一个铁律就是:You cannot run more than one version of the framework in the same application pool in IIS6.如果你不遵守,那么"Server Application Unavailable" 将会和一直相伴。--Running multipl... 阅读全文
posted @ 2006-05-11 10:07 upzone 阅读(302) 评论(0) 推荐(0) 编辑
摘要: 1 Dictionary m_SessionList= new Dictionary();2 string contact="upzone";3 MSNSession session = null;4 session = m_SessionList[contact];5 session.LastDateTime=DateTime.Now;6 请问这时候m_SessionList里的对应ses... 阅读全文
posted @ 2006-05-10 17:04 upzone 阅读(168) 评论(1) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2006-05-05 21:37 upzone 阅读(212) 评论(0) 推荐(0) 编辑
摘要: When you define a generic class, you can apply restrictions to the kinds of types that client code can use for type arguments when it instantiates your class. If client code attempts to instantiate yo... 阅读全文
posted @ 2006-04-25 18:36 upzone 阅读(308) 评论(1) 推荐(0) 编辑
摘要: msdn上查到这个SmtpDeliveryMethod,邮件发送方式 SmtpDeliveryMethodCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1// Summary: 2// Specifies how email message... 阅读全文
posted @ 2006-04-25 11:30 upzone 阅读(702) 评论(1) 推荐(0) 编辑