摘要: http://simpleprogrammer.com/2010/09/24/explaining-what-action-and-func-are/ Explaining What Action And Func Are In C#, Action and Func are extremely useful tools for reducing duplication in code an... 阅读全文
posted @ 2015-02-07 22:56 h.yl 阅读(191) 评论(0) 推荐(0)
摘要: Unslider.com arrow example ← → 阅读全文
posted @ 2015-01-29 11:55 h.yl 阅读(207) 评论(0) 推荐(0)
摘要: 原文:http://www.cnblogs.com/mengdd/p/4229490.html jQuery操作DOM元素 HTML DOM常见操作: 查找节点,插入节点,删除节点,复制节点,替换节点,包裹节点. 查找节点 关于节点的查找,是利用选择器完成的. 在上一篇jQuery选择器中已经介绍过了:http://www.cnblogs.com/mengdd/p/4211... 阅读全文
posted @ 2015-01-19 09:12 h.yl 阅读(158) 评论(0) 推荐(0)
摘要: 转自:http://blog.log4d.com/2011/01/gac/ GAC GAC是什么?是用来干嘛的?GAC的全称叫做全局程序集缓存,通俗的理解就是存放各种.net平台下面需要使用的dll的地方。GAC的具体目录在windows/ assembly。 喜欢使用破解软件的朋友可能会经常使用替换DLL这招,这个DLL虽然和.net下面的DLL有所不同,但大致起的作用还是一样的:使用共同的动态... 阅读全文
posted @ 2015-01-16 11:55 h.yl 阅读(289) 评论(0) 推荐(0)
摘要: Sql Server 分区演练 【转】 代码加注释,希望对初学者有用。 USE[master]GOifexists (select*from sys.databases where name ='Test_1')dropdatabase Test_1GO--创建新库,要演练分区所以我们会多创建两个文件组Test_A,Test_B,以便在后面的分区方案中使用。CREATEDATABAS... 阅读全文
posted @ 2014-12-22 16:52 h.yl 阅读(190) 评论(0) 推荐(0)
摘要: C#中精确计时的一点收获 【转】 以下所有代码运行环境:Windows 2003, Intel(R) Core(TM) 2 Duo CPU E8400 @ 3.00GHz 2.99GHz,2.96GB内存 根据综合网上的一些文章,精确计时主要有以下几种方式 1 调用WIN API中的GetTickCount [DllImport("kernel32")]static extern uint Ge... 阅读全文
posted @ 2014-12-19 15:46 h.yl 阅读(1653) 评论(1) 推荐(0)
摘要: 文件夹锁定(Source)private void Lock(string folderPath){ try { string adminUserName = Environment.UserName;// getting your adminUserName DirectorySecurity ds = Directory.GetAccessControl... 阅读全文
posted @ 2014-12-16 17:42 h.yl 阅读(238) 评论(0) 推荐(0)
摘要: log4net各种Filter使用【转】 log4net里面的filter类常用的为: 1、DenyAllFilter 拒绝所用的日志输出 上面的配置是如果日志的输出级别不符合DEBUG要求的话,则不输出任何日志。 2、LevelMatchFilter ... 阅读全文
posted @ 2014-12-16 16:52 h.yl 阅读(504) 评论(0) 推荐(0)
摘要: Controllers and Routers in ASP.NET MVC 3 ambilykk, 3 May 2011 CPOL 4.79 (23 votes) Rate: vote 1vote 2vote 3vote 4vote 5 A deeper look into the two pillars of ASP.NET MVC – Routers and Controllers. ... 阅读全文
posted @ 2014-10-15 15:38 h.yl 阅读(155) 评论(0) 推荐(0)
摘要: 1. 返回ViewResult public ActionResult Index() { ViewData["Message"] = "Welcome to asp.net MVC!"; return View(); } public ActionResult Index(){ ViewData["Message"] = "Welcome to ASP.N... 阅读全文
posted @ 2014-10-15 13:12 h.yl 阅读(199) 评论(0) 推荐(0)