代码改变世界

jquery getJSON IE8 cache

2012-09-18 11:31 by 蜡笔小旧, 708 阅读, 0 推荐, 收藏,
摘要:今天用firefox调试了个统计数据代码没问题,用IE8跑发现取的数据不对,原以为是ExtJs的缓存问题,结果发现是IE缓存的问题。解决办法有两种:(1)服务端(未测试asp.net mvc):public class NoCacheAttribute : ActionFilterAttribute{ public override void OnActionExecuted(ActionExecutedContext context) { context.HttpContext.Response.Cache.SetCacheability(HttpCacheabil... 阅读全文

win7开启AHCI蓝屏

2012-08-16 09:00 by 蜡笔小旧, 240 阅读, 0 推荐, 收藏,
摘要:1.regedit->HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\Msahci下的 start->改为02.在BIOS里改成AHCI模式3.进入系统更新驱动(如win没自动安装可上官网下)相关链接:http://blog.oobeta.com/archives/2012/02/06/2273.htmlhttp://ask.zol.com.cn/q/19363.html 阅读全文

【转】windows has blocked this software because it can't verify the publisher

2012-08-07 18:29 by 蜡笔小旧, 2200 阅读, 0 推荐, 收藏,
摘要:1. Open internet explorer, click Tools – Internet Options .2. Click the Security tab – Custom Level button.Under ActiveX ensure the following are set to enabledRun ActiveX and plug-ins – EnabledDownload Signed ActiveX Control – EnabledScript ActiveX controls marked as safe for scripting – EnabledSet 阅读全文

免安装版Notepad++注册windows右键菜单

2012-07-23 19:01 by 蜡笔小旧, 1149 阅读, 0 推荐, 收藏,
摘要:REGEDIT4[HKEY_CLASSES_ROOT\*\Shell\NotePad++][HKEY_CLASSES_ROOT\*\Shell\NotePad++\Command]@="D:\\Program Files\\npp\\unicode\\notepad++.exe \"%1\"" 最后一行是绿色NOTEPAD++的位置。【转】http://312788172.iteye.com/blog/739495--------------------------------------------另注:windows 7下测试通过,需修改注册表权限。 阅读全文

【转】.NET DateTime.Now.ToString

2012-05-26 11:21 by 蜡笔小旧, 262 阅读, 0 推荐, 收藏,
摘要:今天我在使用 DateTime.Now.ToString("yyyy/MM/dd") 输出的结果是 2006-03-16 而不是我想要的 2006/03/16,都快把我郁闷的不行了。后来用了一个方法解决:DateTime.Now.ToString("yyyy/MM /dd").Replace("-", "/"),这种方法虽然可以解决问题(后面证明这个方法并不太管用),但感觉总是很别扭,后来请教了韩磊老大,恰巧他也遇到过同样的问题,原因就是在 ToString() 的时候这个方法是直接以系统的日期格式设置输出的,所以 阅读全文

.NET URL Encode remark

2012-05-12 01:11 by 蜡笔小旧, 678 阅读, 0 推荐, 收藏,
摘要:.NET为例:如: /Home/Index?key=套餐程序能读到正确的值.Requst["key"]为"套餐"/Home/Index?key=%e5%a5%97%20%e9%a4%90值Requst["key"]也为"套餐", 切记不是”%e5%a5%97%20%e9%a4%90“NOTICE:<%= Url.Action("Index", "Home", new {key="套餐"}) %>Url.Action会做encoderef:htt 阅读全文

Using Cache Versus Application[ref]

2011-12-01 09:51 by 蜡笔小旧, 235 阅读, 0 推荐, 收藏,
摘要:Using Cache Versus ApplicationIt might appear that there are close likenesses between the Cache and HttpApplicationState classes. Both have the capability to store data in an application-wide context, and the syntax for dealing with them is basically identical. The differences, however, are great.Bo 阅读全文

压缩系统盘后系统无法启动报错 xxx is compressed.

2011-11-07 08:19 by 蜡笔小旧, 680 阅读, 0 推荐, 收藏,
摘要:硬盘很小80g,4g内存,准备装dataram ramdisk.报invalid picture error.下了个除错工具。需C盘6g空间,故用win自带工具压缩驱动器以节约磁盘空间。重启后报错,:( 。what a pity!!! 借了张安装盘,修复,结果还是不兴。 网上查了很多资料,终于看到了希望。进命令行工具:Bootrec.exe /fixmbrBootrec.exe /fixboourl:http://answers.microsoft.com/zh-hans/windows/forum/windows_vista-system/%E5%8E%8B%E7%BC%A9%E4%BA%8 阅读全文

[asp.net]页面标记

2011-09-02 19:30 by 蜡笔小旧, 228 阅读, 0 推荐, 收藏,
摘要:今天遇到一个问题,试了N久,未果。幸好同事指点。mark.<%=”hello world”%> = Response.Write--------------------------------------------------------<%$expression%>在.Net 4.0支持的系统默认支持的表达式有:Resources, ConnectionStrings,AppSettings,RouteUrl,RouteValue这些在根配置文件web.config的system.web/compilation/expressionBuilders配置节中有配置更多 阅读全文

[asp.net mvc]母版页title疑惑

2011-09-02 17:46 by 蜡笔小旧, 621 阅读, 0 推荐, 收藏,
摘要:<head runat="server"> <title> <asp:ContentPlaceHolder ID="TitleContent" runat="server"></asp:ContentPlaceHolder> -XXXXXX </title></head> 界面标题永远显示内容页的TitleContent。。。疑惑。。最后把head的runat="server"去掉。OK.有人能给解释下原因不? 阅读全文
上一页 1 2 3 4 5 6 7 8 9 ··· 22 下一页