IT
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 55 下一页
摘要: 1 合理的索引设计: 例:表record有620000行,试看在不同的索引下,下面几个SQL的运行情况: 语句A SELECT count(*) FROM record WHERE datebetween'19991201' and'19991214‘ and amount 2000 语句B SELECT count(*) FROM record WHERE date '19990901' and place IN ('BJ','SH') 语句C SELECT date,sum(amount) FROM record group by date 1 在date上建有一个非聚集索引 A:(2 阅读全文
posted @ 2010-12-23 09:32 liufei 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 最近想做一个Ajax分页功能,网上一搜几乎全是基于某某框架的Ajax分页,要么需给页面加上 scriptManager /scriptManager,要么需引入某dll,要么需使用类似于jQuery的框架。使用如上方法确实可以实现Ajax分页效果,但我总觉得不够简洁,这里写一些我的简单总结。开始进入Ajax分页功能的无框架实现方法的正题。首先创建前台页面MyAjaxPager.aspxAjax分页功能的无框架实现的画面很简单,就是一排index地址,当点击链接后会以ajax的方式将数据绑定到下边的repeater。498)this.style.width=498;" height=3 阅读全文
posted @ 2010-12-23 09:30 liufei 阅读(229) 评论(0) 推荐(0) 编辑
摘要: htmlheadmeta http-equiv="Content-Type" content="text/html; charset=gb2312" /titleAjax提示框/titlestyle type="text/css"a{ color:#000; font-size:12px;text-decoration:none}a:hover{ color:#900; text-decoration:underline}body{background:;filter:progid:DXImageTransform.Microsoft.Gradient(gradient 阅读全文
posted @ 2010-12-23 09:26 liufei 阅读(207) 评论(0) 推荐(0) 编辑
摘要: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w3.org/1999/xhtml"headtitleAjax弹出式无刷新城市选择特效/titlemeta http-equiv="content-type" content="text/html;charset=gb2312"style type="text/css"BODY {FON 阅读全文
posted @ 2010-12-23 09:25 liufei 阅读(359) 评论(0) 推荐(0) 编辑
摘要: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w3.org/1999/xhtml"headmeta http-equiv="Content-Type" content="text/html; charset=gb2312" /title基于层的网页弹出提示,可移动,网页变灰-//titlestyle type="text/css" 阅读全文
posted @ 2010-12-23 09:23 liufei 阅读(180) 评论(0) 推荐(0) 编辑
摘要: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w3.org/1999/xhtml"headmeta http-equiv="Content-Type" content="text/html; charset=gb2312" /title始终居中的弹出层/titlestyle type="text/css"!--html,body 阅读全文
posted @ 2010-12-23 09:21 liufei 阅读(495) 评论(0) 推荐(0) 编辑
摘要: !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"html xmlns="http://www.w3.org/1999/xhtml"headtitleDIV弹出层/titlemeta charset="gbk" /stylediv{position:absolute;top:0;left:0;background:#ccc;}/style/headbodydiv id 阅读全文
posted @ 2010-12-23 09:21 liufei 阅读(624) 评论(0) 推荐(0) 编辑
摘要: Page page的引用 比如 弹出B.aspx B a=new B();把 page换成 a 即可;打开一个.net窗口,并且这个.net窗口位于最前面 /**//// summary /// 打开一个.net窗口口,并且这个.net窗口位于最前面 /// /summary /// param name="page"提用的页面/param /// param name="URL"要打开的URL/param /// param name="PageName"要打开页面的名称/param /// param name="Win_Width"窗口宽度/para 阅读全文
posted @ 2010-12-17 17:45 liufei 阅读(904) 评论(0) 推荐(0) 编辑
摘要: 项模板直接拉一个RadioButton,然后写JS代码,如下:script language="javascript" function check(radio) { var radioButtons = document.getElementsByTagName("input"); for (var i = 0; i radioButtons.length; i++) { if (radioButtons[i].type == "radio") { if (radioButtons[i] == radio) { continue; } else { radioButtons[i].c 阅读全文
posted @ 2010-12-16 13:04 liufei 阅读(634) 评论(0) 推荐(0) 编辑
摘要: 字号:大 中 小 SQL Server中文版的默认的日期字段datetime格式是yyyy-mm-dd Thh:mm:ss.mmm 例如:select getdate()2004-09-12 11:06:08.177这对于在要不同数据库间转移数据或者习惯oracle日期格式YYYY-MM-DD HH24:MI:SS的人多少有些不方便.我整理了一下SQL Server里面可能经常会用到的日期格式转换方法:举例如下:select CONVERT(varchar, getdate(), 120 )2004-09-12 11:06:08select replace(replace(replace(CO 阅读全文
posted @ 2010-12-08 13:39 liufei 阅读(199) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 55 下一页