zwei1121

博客园 首页 新随笔 联系 订阅 管理
上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页

2008年7月12日 #

摘要: protected void btnTest_Click(object sender, EventArgs e) { int start = Convert.ToInt32(this.txtStart.Text); int end = Convert.ToInt32(this.txtEnd.Text); ArrayList al = new ... 阅读全文
posted @ 2008-07-12 17:54 zwei 阅读(196) 评论(0) 推荐(0) 编辑

2008年7月9日 #

摘要: 12345.ToString("n"); //生成 12,345.00 12345.ToString("C"); //生成 ¥12,345.00 12345.ToString("e"); //生成 1.234500e+004 12345.ToString("f4"); //生成 12345.0000 12345.ToString("x"); //生成 3039 (16进制) 12345.... 阅读全文
posted @ 2008-07-09 16:29 zwei 阅读(277) 评论(0) 推荐(0) 编辑

摘要: function txtFocus() { var exp=new Date(); exp.setTime(exp.getTime() + 60*60*1000); document.cookie = "focusTextBox="+ event.srcElement.id + ";expires=" + ex... 阅读全文
posted @ 2008-07-09 12:12 zwei 阅读(207) 评论(0) 推荐(0) 编辑

2008年7月8日 #

摘要: 大家如果对SQL优化感兴趣的话,可以看看这个链接, http://sqlblog.com/blogs/adam_machanic/archive/2008/04/22/sql-server-query-processing-puzzle-like-vs.aspx 这个是一个sql牛人的 博客,他在上面提出了一个小问题: USE TempDB GO CREATE TABLE b1 (blat1 nC... 阅读全文
posted @ 2008-07-08 09:25 zwei 阅读(332) 评论(0) 推荐(0) 编辑

2008年6月30日 #

摘要: 1.firefox不能对innerText支持。 firefox支持innerHTML但却不支持innerText,它支持textContent来实现innerText,不过默认把多余的空格也保留了。如果不用textContent,如果字符串里面不包含HTML代码也可以用innerHTML代替。 2.禁止选取网页内容: 在IE中一般用js:obj.onselectstart=function()... 阅读全文
posted @ 2008-06-30 14:24 zwei 阅读(378) 评论(0) 推荐(0) 编辑

摘要: 一直到21日为全国哀悼日,有很多网站界面都变成了灰色,其实在CSS中套用一条样式即可: html { filter:progid:DXImageTransform.Microsoft.BasicImage(grayscale=1); } 阅读全文
posted @ 2008-06-30 14:14 zwei 阅读(191) 评论(0) 推荐(0) 编辑

2008年6月20日 #

摘要: 从转向过来的URL中截取参数 开始 function SplitUrl(key) { var fstr=key; var getstr=''; var url=document.URL.toString(); url=url.toLowerCase();//转为小写 var loc=url.indexOf(fstr); if(loc>0) { getstr=url.substrin... 阅读全文
posted @ 2008-06-20 11:48 zwei 阅读(161) 评论(0) 推荐(0) 编辑

2008年5月30日 #

摘要: enctype="multipart/form-data string date2 = dt.ToString("yyyy/MM/dd hh:mm:ss", System.Globalization.DateTimeFormatInfo.InvariantInfo); 阅读全文
posted @ 2008-05-30 09:12 zwei 阅读(132) 评论(0) 推荐(0) 编辑

2008年5月11日 #

摘要: GO-- 创建测试表CREATE TABLE tb(id char(8))-- 创建用于自动过滤重复值的唯一索引CREATE UNIQUE INDEX IX_tb ON tb(id)WITH IGNORE_DUP_KEY GO-- 测试数据插入的处理时间, 记录开始处理的时间点DECLARE @dt... 阅读全文
posted @ 2008-05-11 12:24 zwei 阅读(179) 评论(0) 推荐(0) 编辑

2008年5月9日 #

摘要: Introduction A KeyedList is an ordered key-value list. In comparison: Hashtable is a key-value list that is not ordered; SortedList is a key-value list that is sorted; ArrayList is an or... 阅读全文
posted @ 2008-05-09 16:30 zwei 阅读(267) 评论(0) 推荐(0) 编辑

上一页 1 ··· 19 20 21 22 23 24 25 26 27 ··· 31 下一页