jerry li

博客园 首页 联系 订阅 管理

摘要: 接口是对行为的抽象抽象类是对共性的抽象 阅读全文
posted @ 2009-12-21 16:06 jerry li 阅读(145) 评论(0) 推荐(0)

2010年3月26日

摘要: 昨天:  dateadd(day,-1,getdate())明天:  dateadd(day,+1,getdate())本月的第一天:  select DATEADD(day,-day(getdate())+1,getdate())上月的第一天:  SELECT DATEADD(mm,-1,(DATEADD(mm,DATEDIFF(mm,0,getdate()),0)))上月:  select *... 阅读全文
posted @ 2010-03-26 16:09 jerry li 阅读(189) 评论(0) 推荐(0)

2010年2月1日

摘要: mymsg=mymsg.replace(/<\/?.+?>/g,"");//html2txt去掉html标记mymsg=mymsg.replace(/\n|\r/g,"");//去掉换行 阅读全文
posted @ 2010-02-01 15:08 jerry li 阅读(1284) 评论(0) 推荐(0)

2009年12月23日

摘要: declare @string varchar(8000)while exists(select name from sysobjects where xtype='c')beginselect top 1 @string='alter table ['+b.name+'] drop constraint '+a.name from (select parent_obj,name from sys... 阅读全文
posted @ 2009-12-23 14:13 jerry li 阅读(277) 评论(0) 推荐(0)

2009年12月18日

摘要: http://msdn.microsoft.com/zh-cn/library/bb397687.aspx 阅读全文
posted @ 2009-12-18 14:54 jerry li 阅读(175) 评论(0) 推荐(0)

摘要: 转载:http://kb.cnblogs.com/list/42463/ 阅读全文
posted @ 2009-12-18 14:53 jerry li 阅读(188) 评论(0) 推荐(0)

2009年12月15日

摘要: 转载:利用wsdl.exe生成webservice代理类:根据提供的wsdl生成webservice代理类1、开始->程序->Visual Studio 2005 命令提示2、输入如下红色标记部分D:\Program Files\Microsoft Visual Studio 8\VC>wsdl /language:c# /n:TestDemo /out:d:\Temp\Test... 阅读全文
posted @ 2009-12-15 17:45 jerry li 阅读(5275) 评论(0) 推荐(3)

摘要: 转载:.net平台内建了对Web Service的支持,包括Web Service的构建和使用。与其它开发平台不同,使用.net平台,你不需要其他的工具或者SDK就可以完成Web Service的开发了。.net Framework本身就全面支持Web Service,包括服务器端的请求处理器和对客户端发送和接受SOAP消息的支持。下来我们就一步一步的用Microsoft Visual Studi... 阅读全文
posted @ 2009-12-15 17:44 jerry li 阅读(1319) 评论(0) 推荐(0)

2009年12月11日

摘要: 1.堆和栈  c#的两大数据类型分别为值类型和引用类型。值类型包括简单类型、结构体类型和枚举类型,引用类型包括自定义类、数组、接口、委托等。  值类型通常分配在线程的堆栈上,作用域结束时,所占空间自行释放,效率高,无需进行地址转换,而引用类型通常分配在托管堆上,由GC来控制其回收,需要进行地址转换,效率降低2.session(几种状态,区别)三种模式的Session比较InProcStateSer... 阅读全文
posted @ 2009-12-11 10:24 jerry li 阅读(242) 评论(0) 推荐(0)

摘要: public class UtilDao : PageBase{ protected static string connectionString = WebConfigurationManager.ConnectionStrings["CawAdmin"].ConnectionString; public delegate void CommondDelegate(String[] pamerS... 阅读全文
posted @ 2009-12-11 10:18 jerry li 阅读(206) 评论(0) 推荐(0)