My post test
posted @ 2011-11-29 21:33 a-peng 阅读(31) 评论(0) 编辑
|
|||||||||||||||||||||||||||||||||||
|
当给div加contenteditable="true"来实现inline edit时,在ie下display: none与visibility: hidden的元素会显示出来(这是ie的默认行为),我们可以通过以下脚本修复。 <script type="text/javascript">
window.document.execCommand('RespectVisibilityInDesign', true, true);
</script>
具体可参看:http://msdn.microsoft.com/en-us/library/aa770023%28VS.85%29.aspx posted @ 2011-06-10 15:09 a-peng 阅读(59) 评论(0) 编辑 Associations in EF Code First CTP5: Part 1 – Complex Typeshttp://weblogs.asp.net/manavi/archive/2010/12/11/entity-association-mapping-with-code-first-part-1-one-to-one-associations.aspx Associations in EF Code First CTP5: Part 2 – Shared Primary Key Associationshttp://weblogs.asp.net/manavi/archive/2010/12/19/entity-association-mapping-with-code-first-one-to-one-shared-primary-key-associations.aspx Associations in EF Code First CTP5: Part 3 – One-to-One Foreign Key Associationshttp://weblogs.asp.net/manavi/archive/2011/01/23/associations-in-ef-code-first-ctp5-part-3-one-to-one-foreign-key-associations.aspx posted @ 2011-03-30 23:07 a-peng 阅读(88) 评论(0) 编辑 1. Url routing http://site.com/ > controller = Home, action = Index http://site.com/home/index > controller = Home, action = Index http://site.com/home/index/1 > controller = Home, action = Index, id = 1 http://site.com/test > controller = test, action = Index : {controller}/{action}/{id}
AppRelativeCurrentExecutionFilePath is the portion of the request that Routing acts on. AppRelativeCurrentExecutionFilePath: ~/test posted @ 2011-03-23 14:00 a-peng 阅读(68) 评论(0) 编辑 1. Download Windbg www.windbg.org mscorwks is the main MS CLR implementation.
mscordacwks provides a data-access abstraction over the CLR details,
so that debuggers (such as SOS) don't need to know too much about the
internals of mscorwks posted @ 2011-01-21 15:59 a-peng 阅读(47) 评论(0) 编辑 摘要: Unity三篇好文Unity(1)简介及简单使用http://www.xiaozhou.net/dotnetdevelopment/unity-study-notes-1-unity-introduction-and-easy-to-use-2009-04-23.htmUnity(2)配置文件的使用http://www.xiaozhou.net/dotnetdevelopment/unity-st...阅读全文 posted @ 2010-02-06 16:46 a-peng 阅读(53) 评论(0) 编辑 摘要: http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspxLocalize Eval dataEval只有这两种重载,没有涉及到本地化。protected internal object Eval(string expression);protected internal string Eval(string expression, string f...阅读全文 posted @ 2010-02-06 16:45 a-peng 阅读(40) 评论(0) 编辑 摘要: 博客左边的存档相信大家都很常见到吧。我写了句sql语句,希望取出年份,月份,记录数。[代码]然后我希望在Entity Framework里实现,我用Entity SQL实现了下。[代码]生成SQL语句[代码]如果按上面的思路用linq表达式发现要group by两次,貌似很复杂。换个算法。代码Code highlighting produced by Actipro CodeHighlighter...阅读全文 posted @ 2010-02-06 16:44 a-peng 阅读(367) 评论(0) 编辑 摘要: Application Start应用程序启动后,会获取一个应用实例ApplicationInstance通过HttpApplicationFactory.GetNormalApplicationInstance方法获取,在该方法中会调用InitModules初始化所有Modules,然后会调用一个Init方法。我们可以覆盖这个Init方法来初始化一些数据。等级和InitModule中的Init一...阅读全文 posted @ 2010-02-06 16:43 a-peng 阅读(28) 评论(0) 编辑 |
|||||||||||||||||||||||||||||||||||