随笔分类 -  .Net

摘要:I had similar problem which was resolved by taking two steps :1A. DELETE THE REGISTRY KEY :32-bit machine>[HKEY_CURRENT_USER\Software\Microsoft\Window... 阅读全文
posted @ 2015-08-28 15:46 Ready! 阅读(288) 评论(0) 推荐(0) 编辑
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using System.Thre... 阅读全文
posted @ 2014-07-27 11:03 Ready! 阅读(179) 评论(0) 推荐(0) 编辑
摘要:Answer:I understand the IEnumerator/IEnumerable methods and properties and also how they are interrelated. But I fail to understand from the foreach loop perspective. Say for example, if I say the following line of code, how does the compiler look at foreach loop and break it down to IEnumerable/IEn 阅读全文
posted @ 2013-07-07 14:10 Ready! 阅读(214) 评论(0) 推荐(0) 编辑
摘要:一、为什么Control类提供了Invoke和BeginInvoke机制?关于这个问题的最主要的原因已经是dotnet程序员众所周知的,我在此费点笔墨再次记录到自己的日志,以便日后提醒一下自己。1、windows程序消息机制Windows GUI程序是基于消息机制的,有个主线程维护着一个消息泵。这个消息泵让windows程序生生不息。 Windows GUI程序的消息循环 Windows程序有个消息队列,窗体上的所有消息是这个队列里面消息的最主要来源。这里的while循环使用了GetMessage()这个方法,这是个阻塞方法,也就是队列为空时方法就会被阻塞,从而这个while循环停止运动,这避 阅读全文
posted @ 2012-04-16 11:37 Ready! 阅读(204) 评论(0) 推荐(0) 编辑
摘要:Event Aggregator -- 彻底解耦了事件的定义与行为。一般的事件使用中,我们至少需要引用到定义事件的类。比如,class A{//define event}class B{//some behaviour}class ControlClass{ Aa = new A();a.EventX += B.Method1;}使用了EventAggregator后,我们在事件定义的时候Publish,仅需要在其它任何需要的地方Subscribe! 阅读全文
posted @ 2012-04-13 16:57 Ready! 阅读(328) 评论(0) 推荐(0) 编辑
摘要:元数据是关于数据的数据。在编程语言上下文中,元数据是添加到程序元素如方法、字段、类和包上的额外信息。什么是元编程?运行时动态创建类型的功能称为元编程。 从学习UML就知道meta-的重要性了,再后来了解到MOF(MetaObjectFacility)就更加着迷这个Meta-。Meta- 在...之中... 对于想真正了解一个Framework,了解它的Meta东西是十分重要的。不管任何一个Framework,肯定存在着它自己的MetaData的,. NET作为一个Framework自然也存在好多元数据,我们编写应用程序中如果可以灵活的运用元编程技术,肯定可以使我们的程序更加灵活,高效甚至自我 阅读全文
posted @ 2011-11-21 18:58 Ready! 阅读(329) 评论(0) 推荐(0) 编辑
摘要:Context-boundobjectsareaspecialcaseof.NETremoting(inparticular,ofclient-activatedobjects).Inmanyrespects.NETtreatsthemjustlikeremoteobjects,butitdoesoptimizesomeelementsofitsremotingarchitectureforcontext-boundobjects—forexample,asmentionedpreviously,thechannelusedforcross-contextcallsisanoptimizedc 阅读全文
posted @ 2011-07-20 15:51 Ready! 阅读(697) 评论(0) 推荐(0) 编辑
摘要:You see a lot of old SaveAs code that does not specify the FileFormat parameter. In Excel versions before Excel 2007, code without this parameter will not cause too many problems because Excel will use the current FileFormat of the existing file -- and the default FileFormat for new files is a norma 阅读全文
posted @ 2011-04-07 21:44 Ready! 阅读(551) 评论(0) 推荐(0) 编辑
摘要:History中断 -> 函数指针(C++) -> Delegate(.Net)Application(1) 回调函数call method,代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--///<summary>///回调... 阅读全文
posted @ 2010-11-08 17:30 Ready! 阅读(275) 评论(0) 推荐(0) 编辑
摘要:http://www.cnblogs.com/rijing2004/archive/2007/09/14/howaspnetwork.htmlhttp://www.codeproject.com/KB/aspnet/ASPDOTNETPageLifecycle.aspx 阅读全文
posted @ 2010-07-09 09:58 Ready! 阅读(163) 评论(0) 推荐(0) 编辑
摘要:并在权限中添加了ASPNET和NETWORK SERVICE两个用户,并将权限设为可写,问题解决! 阅读全文
posted @ 2010-06-22 10:35 Ready! 阅读(387) 评论(0) 推荐(0) 编辑
摘要:DataBinder.Eval Method,Uses reflection to parse and evaluate a data-binding expression against an object at run time. Eval, Data-binding expressions are contained within <%# and %> delimiters an... 阅读全文
posted @ 2010-06-21 11:00 Ready! 阅读(803) 评论(0) 推荐(0) 编辑
摘要:Using the VS2010 ADO.NET Entity Model Designer for an .EDMX file to set the “StoreGeneratedPattern” Property of a database column (a feature not available at all in the ADO.NET Entity Mode... 阅读全文
posted @ 2010-05-07 16:03 Ready! 阅读(414) 评论(0) 推荐(0) 编辑
摘要:困扰了很久哦,什么没有asp.net账号\权限不够\等等原因都遇到了,最后还有一个是ie的security settings中的User Authentication\Logon项的设置,选择Automatic logon with current user name and password后解决问题。 阅读全文
posted @ 2010-03-11 09:59 Ready! 阅读(213) 评论(0) 推荐(0) 编辑
摘要:Can look up related threads and AppDomains(for .Net). 阅读全文
posted @ 2009-12-30 15:23 Ready! 阅读(224) 评论(0) 推荐(0) 编辑
摘要:原来我在网页中的client javascript ,使用了 <%=%>,如下functionsetField(){ varstrUrl="InvoiceDisplayFieldSetting.aspx?oid=<%=OID%>"; window.showModalDialog(strUrl,"setField", "dialogWidth:400px;dialogHeig... 阅读全文
posted @ 2008-05-21 12:08 Ready! 阅读(806) 评论(0) 推荐(0) 编辑
摘要:Pointers are special kinds of variables. There are three kinds of pointers supported by the runtime: managed pointers, unmanaged pointers, and unmanaged function pointers. A managed pointer, also ... 阅读全文
posted @ 2008-02-21 10:22 Ready! 阅读(383) 评论(0) 推荐(0) 编辑
摘要:今天在网上看到一篇随笔,以金庸小说里的人物练剑为例,道出了一个简单的道理。说是,华山派有两派:剑宗与气宗。两派之争一直就没有停息过。直接摘一段文字过来吧。 关于两宗的,上下优劣书中有不少笔墨,无非是各执一词,各护其短。其实说白了无非是个辨证法----剑宗一味追求技巧上的繁复多变,以为真把自己手中的剑练成了能给苍蝇蚊子开膛破肚的手术刀便能无敌于天下,气宗则沉稳老练一些,别看剑宗弟子的剑花一抖一抖的... 阅读全文
posted @ 2008-02-20 10:44 Ready! 阅读(534) 评论(2) 推荐(0) 编辑
摘要:Untitled Page --> 阅读全文
posted @ 2008-01-18 16:35 Ready! 阅读(203) 评论(0) 推荐(0) 编辑