摘要: 从今天起,确定我的目标———————————————————————————————————————————————————————————————————— 阅读全文
posted @ 2010-12-25 19:21 cnbwang 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 基本控制语句:代码常用内置过程代码一些应用:批量生成测试数据[代码] 阅读全文
posted @ 2010-12-22 10:56 cnbwang 阅读(215) 评论(3) 推荐(0) 编辑
摘要: 自定义控件实现,效果如下代码如下代码 阅读全文
posted @ 2010-12-18 11:25 cnbwang 阅读(774) 评论(1) 推荐(0) 编辑
摘要: 问题如下:某一个存储过程,过程体是:select * from atable where afield in(@str)在外面调用的格式是:exec dbo.proc1 'a,b,c'实现代码如下:代码 阅读全文
posted @ 2010-12-18 10:22 cnbwang 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 字符串:"abcbeee",要求结果如下"a:1b:2c:1e:3输出数组内容代码datagridview 序号列代码校验相关代码 阅读全文
posted @ 2010-12-17 23:34 cnbwang 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1.基本概念2.闭包,call,apply2.1.闭包:以下是官方解释,A "closure" is an expression (typically a function) that can have free variables together with an environment that binds those variables (that "closes" the expression). 在js中,根据链式作用域的特点,子对象可以访问父对象,父对象则不能访问子对象。这种在函数内部嵌套定义子函数就形成了闭包。闭包会使得函数的变量都保存在内 阅读全文
posted @ 2010-12-12 16:33 cnbwang 阅读(256) 评论(2) 推荐(0) 编辑
摘要: 思路:将验证用的javascript封装到控件内,并和该控件的onkeydown绑定,超级简单。代码如下: 阅读全文
posted @ 2010-12-01 21:12 cnbwang 阅读(381) 评论(0) 推荐(0) 编辑
摘要: 项目中有许多页面都要用到日期选择框,为了统一管理,就制作了一个简单的自定义控件,效果如下:功能:鼠标点击输入框,弹出日期选择画面。后台和前台代码如下代码前途javascript代码如下代码 阅读全文
posted @ 2010-11-28 11:47 cnbwang 阅读(781) 评论(1) 推荐(0) 编辑
摘要: projectcostdays879263 source代码 阅读全文
posted @ 2010-11-11 14:11 cnbwang 阅读(222) 评论(1) 推荐(0) 编辑
摘要: 对于字符串列表,List<string> strList = new List<string>(new string[] { "1", "10", "2"}),默认排序为:1,10,2如果想得到1,2,10这样序列的排序结果,目前我所知道的有如下几种方法:1.自定义比较器代码2.委托[代码]3.Linq[代码] 阅读全文
posted @ 2010-09-26 15:07 cnbwang 阅读(481) 评论(4) 推荐(1) 编辑