12 2010 档案
摘要:今天碰到一个问题,其实之前也有碰到过。在visual studio 2010创建控制台程序的时候(其它项目还不知道会不会有同样的问题)。添加log4net.dll引用,随便写点代码,如:[代码]编译,通不过,Error1The type or namespace name 'log4net' could not be found (are you missing a using directive or an assembly reference?)C:\Users\Joe\Desktop\sample\sample\ConsoleApplication1\Program.cs57Consol
阅读全文
摘要:给SVN设置代理的方法! 在C:\Documents and Settings\Administrator\Application Data\Subversion的server配置文件下找到[global]节点 然后添加 http-proxy-host = 172.100.1.28 代理ip http-proxy-port = 8080 代理端口 http-proxy-username = ha...
阅读全文
摘要:windows service代码 inno setup 代码
阅读全文
摘要:Some of you read that code and are thinking to yourself, “String concatenation!? Are you kidding?” Yeah, we could use a StringBuilder, but for a small number of concatenations, concatenating a string ...
阅读全文
摘要:Let’s start off by demonstrating how to write a test of the Default route included in Global.asax.cs. This demonstration assumes that when you create a new project using the ASP.NET MVC Web Applicati...
阅读全文
摘要:可扩展的简易点击展开/关闭效果,分别用原生JavaScript和jQuery实现.使用方法及相关解释,请参见源码.另,授人以鱼,不如授人以渔.我写的只是一个原型,提供一个思路一种方法.注释中我也注明了,如果你想要酷炫的效果,你可以根据自己的实际需求扩展.查看演示: 点此查看DEMO原生JS版本:window.onload=function(){ vardivs=document.getElementsByTagName('div');//找到所有div元素 for(vari=0; idivs.length; i++){ if(divs[i].className!='jsdemo')con
阅读全文
摘要:To implement paging logic, we can update our Index action method so that it applies additional Skip and Take operators to the returned IQueryableDinner sequence before calling ToList on it: // // GE...
阅读全文