01 2013 档案

Back/Forward and Refresh in browser
摘要:What's the difference between pressing back/forward button and pressing refresh button? And what would happen inside a browser when we press those three button? Basically,the back and forward button just simply "keep the previous state of the page",letting the page looks like the same 阅读全文

posted @ 2013-01-30 17:43 wyman25 阅读(352) 评论(0) 推荐(0) 编辑

Will static methods over multithreading cause thread-safe problem?
摘要:Most of the time when we are using multi-threading we are likely facing the thread-safe issue,it seems that this problem always come up withcallingstatic methods or functions in a thread when multi-threading coding.But is it correct? For more detail, i've done a lot google to search this issue i 阅读全文

posted @ 2013-01-23 00:15 wyman25 阅读(267) 评论(0) 推荐(0) 编辑

[转] 获取刚插入的数据的自增列ID——IDSCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY的区别(比较)
摘要:【原文地址:】 SCOPE_IDENTITY、IDENT_CURRENT 和 @@IDENTITY的区别(比较)@@IDENTITY (Transact-SQL) 返回最后插入的标识值的系统函数。备注 在一条 INSERT、SELECT INTO 或大容量复制语句完成后,@@IDENTITY 中包含语句生成的最后一个标识值。如果语句未影响任何包含标识列的表,则 @@IDENTITY 返回 NULL。如果插入了多个行,生成了多个标识值,则 @@IDENTITY 将返回最后生成的标识值。如果语句触发了一个或多个触发器,该触发器又执行了生成标识值的插入操作,那么,在语句执行后立即调用 @@IDENT 阅读全文

posted @ 2013-01-17 15:27 wyman25 阅读(461) 评论(0) 推荐(0) 编辑

IIS7中的站点,应用程序和虚拟目录详解
摘要:前言: 在上一篇博客中,因为我要解决两个独立的站点被放置在同一个站点下的两个应用程序后URL重写的问题,尝试使用了http module方法进行url重写。但那只是我尝试的方法之一。而另外一个想法是:能不能只在IIS本身中,对这两个application(www.site.com/cd和www.site.com/dh)进行设置,使得从某个application的页面发出的绝对路径形式的请求只定向到该application的根目录,这样说有点罗嗦~也就是说,如果www.site.com/cd/default.aspx页面中的一个CSS引用是这样写“<link href="/css 阅读全文

posted @ 2013-01-12 14:57 wyman25 阅读(4476) 评论(2) 推荐(1) 编辑

使用http module 对url进行重写的尝试
摘要:因为一些原因,要将原来两个独立的站点(假设为dh.site.com和cd.site.com)放到同一个站点的两个application下,分别为(www.site.com/dh和www.site.com/cd)。 因为在开发的时候,大部分静态文件的引用路径都是采用绝对路径的形式,例如/style/css1.css。可想而知,当将两个站点作为两个application放置后,这些静态文件就变得无法访问了,因为文件真实的路径已经变成了/dh/style.css1.css了。解决这个问题的最直接的方法就是修改所有的绝对路径:要么将原来的路径加上application的虚拟根路径(例如将/sty... 阅读全文

posted @ 2013-01-11 00:08 wyman25 阅读(2485) 评论(6) 推荐(1) 编辑

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示