上一页 1 2 3 4 5 6 7 ··· 16 下一页
  2012年1月10日
摘要: var querylist=from m in XElement.Load(MapPath("Movies.xml")).Elements("Movie") select m; 阅读全文
posted @ 2012-01-10 15:44 Gary.han 阅读(269) 评论(0) 推荐(0) 编辑
摘要: SQL语句如下:select a,b,count(c) as count from table group by a,bLINQ转换后如下:varq=frompindb.tablegrouppbynew{p.a,p.b}intogselectnew{g.key,fcount=g.count()}说明: g.key 代表了 a,b 两个列的返回值,fcount为重命名后的列名 阅读全文
posted @ 2012-01-10 15:24 Gary.han 阅读(406) 评论(0) 推荐(0) 编辑
  2011年11月29日
摘要: 错误描述:<add key="xxxx" value = "医药" /> 把医药换成字母或者数字都正常,就用汉字就异常。原来配置文件的头重的UTF-8光标识还不行,还得把文件另存为UTF-8的格式才行。解决办法:记事本打开配置文件,在文件里面选择另存,注意底下有个选项可以选择文件的保存格式,选择utf-8后保存即可。 阅读全文
posted @ 2011-11-29 17:45 Gary.han 阅读(331) 评论(0) 推荐(0) 编辑
  2011年6月16日
摘要: UpdateProgress的显示有几种注意情况:1、 如果UpdateProgress 在 UpdatePanel的<ContentTemplate> 中,则会显示UpdateProgress中的提示信息。2、 如果UpdateProgress在 UpdatePanel的<ContentTemplate> 外,则需要指定AssociatedUpdatePanelID属性,但还有一个前提就是触发事件的Button控件必须在UpdatePanel的<ContentTemplate> 中,否则就得用第三步骤解决。3、 如果触发事件的Button控件和Update 阅读全文
posted @ 2011-06-16 11:21 Gary.han 阅读(547) 评论(0) 推荐(0) 编辑
  2011年1月26日
摘要: iframe自适应高度脚本Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--scripttype="text/javascript"functionreinitIframe(){variframe=document.getElementById("mainFrame");try{varbHeight=iframe.contentWindow.document.body.scrollHeight;vardHeight=iframe.contentW 阅读全文
posted @ 2011-01-26 17:00 Gary.han 阅读(468) 评论(1) 推荐(0) 编辑
  2010年9月7日
摘要: 查死锁以及出现锁定的语句及进程IDCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/----如果发现死锁进程ID则可以使用KillSPID的方式终止进程CREATETable#Who(spidint,ecidint,statusnvarchar(50),lo... 阅读全文
posted @ 2010-09-07 09:36 Gary.han 阅读(580) 评论(0) 推荐(0) 编辑
  2010年8月18日
摘要: 首先安装SQLServer2005前如果要安装VS2005或者2008的话,尽量先安装SQL,在安装VS。如已经先安装了VS2005或者2008会提示如下信息:“若要将现有的 Microsoft SQL Server 2005 实例更改为 SQL Server 2005 的其他版本,必须从命令提示符下运行 SQL Server 2005 安装程序并包括 SKUUPGRADE=1 参数&... 阅读全文
posted @ 2010-08-18 16:51 Gary.han 阅读(987) 评论(0) 推荐(0) 编辑
  2010年6月23日
摘要: JS代码整理,把内容另存为HTML文件,然后运行,粘贴对应的JS代码就可以看到效果了。代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--<html><head><title>JSer</title>&l... 阅读全文
posted @ 2010-06-23 13:36 Gary.han 阅读(413) 评论(0) 推荐(0) 编辑
  2010年6月4日
摘要: 在多表关联的情况下,其中内联的表结果由外联方式产生并继续过滤代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--SELECTMAX(A.CityID)ASCityID,SUM(StockInfo.HaveRate)ASHaveRate,Province... 阅读全文
posted @ 2010-06-04 16:33 Gary.han 阅读(455) 评论(0) 推荐(0) 编辑
  2010年6月3日
摘要: Access中使用not in效率低下,可以使用外连接语句代替:代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/----改造前写法SELECTTOP50StockholderID,HaveRate,HaveNumFROM(SELECTStockhold... 阅读全文
posted @ 2010-06-03 16:35 Gary.han 阅读(689) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 16 下一页