Loading

随笔分类 -  C#

摘要:[代码]如果IWorker workerInstance = (IWorker) workerAppDomain.CreateInstanceAndUnwrap(CONFIG_DYNAMIC_ASSEMBLY_PROJECT, CONFIG_DYNAMIC_ASSEMBLY_FULLY_QUALIFIED_NAME);强制转换为IWorker失败,则引发事件ResolveEventHandler 阅读全文
posted @ 2009-10-02 16:30 .net's 阅读(519) 评论(0) 推荐(0)
摘要:Every time I need to load .NET assemblies from a non-default path in an application I end up spending quite a bit of time trying to get it right. Today was no different: I had a situation where I need... 阅读全文
posted @ 2009-10-02 16:21 .net's 阅读(755) 评论(0) 推荐(0)
摘要:A fusion log can contain very useful debugging information when you experience a failure to bind to an assembly. FileNotFoundException, FileLoadException, and BadImageFormatException are all exception... 阅读全文
posted @ 2009-09-27 11:33 .net's 阅读(987) 评论(0) 推荐(0)
摘要:更新:2007 年 11 月下面的过程演示了如何将符合标准 .NET Framework 模式的事件添加到您自己的类和结构中。.NET Framework 类库中的所有事件均基于 EventHandler 委托,定义如下:复制代码 public delegate void EventHandler(object sender, EventArgs e);说明:.NET Framework 2.0 ... 阅读全文
posted @ 2009-09-11 21:52 .net's 阅读(605) 评论(0) 推荐(0)
摘要:[代码]//Default3.aspx[代码]FROM: 《Ajax, a beginner's guide》 阅读全文
posted @ 2009-07-30 16:16 .net's 阅读(565) 评论(0) 推荐(0)
摘要:System.Net.MailComplete FAQ for the System.Net.Mail namespace found in .NET 2.0 the introduce link 阅读全文
posted @ 2009-07-29 17:01 .net's 阅读(442) 评论(0) 推荐(0)
摘要:[代码] 阅读全文
posted @ 2009-06-29 23:23 .net's 阅读(3273) 评论(0) 推荐(1)
摘要:[代码] 阅读全文
posted @ 2009-06-18 20:24 .net's 阅读(1878) 评论(0) 推荐(0)
摘要:[代码]ref:http://social.msdn.microsoft.com/Forums/en-US/csharplanguage/thread/4992c9ef-59cc-41ec-bae0-43b7e335560dhttp://groups.google.com/group/microsoft.public.dotnet.framework.windowsforms/msg/0a0b6b... 阅读全文
posted @ 2009-06-11 21:23 .net's 阅读(627) 评论(0) 推荐(0)
摘要:[代码][代码] 阅读全文
posted @ 2009-05-26 22:46 .net's 阅读(992) 评论(2) 推荐(0)
摘要:save()---新增(并不会根据实体去判断是否有存在记录)[代码] 阅读全文
posted @ 2009-05-18 22:56 .net's 阅读(561) 评论(0) 推荐(0)
摘要:[代码][代码] 阅读全文
posted @ 2009-05-16 13:34 .net's 阅读(454) 评论(0) 推荐(0)
摘要:[代码]需要调用方法.SetSelectList(selectList),即指定需要检索的列,不然不会实现distinct功能 阅读全文
posted @ 2009-05-16 13:02 .net's 阅读(744) 评论(0) 推荐(0)
摘要:树形菜单(checkbox列表),设置checkbox的选中状态 阅读全文
posted @ 2009-03-14 16:43 .net's 阅读(803) 评论(0) 推荐(0)
摘要:自定义分页用户控件 阅读全文
posted @ 2009-03-11 22:48 .net's 阅读(446) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/// /// 格式化数字 /// /// 输入的数字 /// 小数点保留位数(四舍五入) /// 是否千... 阅读全文
posted @ 2009-03-02 21:46 .net's 阅读(1401) 评论(0) 推荐(0)
摘要:在C#中,请千万不要使用静态局部变量。 这回真是让自己撞上了。 特别是在asp.net中就更不能用了。 静态局部变量,不管是实例还是静态类都是共享的,所以千万不要用。特别是有二次赋值的情况更糟糕。 阅读全文
posted @ 2009-02-05 21:50 .net's 阅读(615) 评论(2) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->/// /// check date is validate /// /// /// private bo... 阅读全文
posted @ 2009-01-21 13:08 .net's 阅读(392) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->public void Open() { string FullFileName = ""; //ASP.NET下载文件(弹出打开保... 阅读全文
posted @ 2008-12-17 22:09 .net's 阅读(2492) 评论(4) 推荐(0)
摘要:索引器与属性类似。除下表中显示的差别外,为属性访问器定义的所有规则同样适用于索引器访问器。 属性 索引器 允许像调用公共数据成员一样调用方法。 ... 阅读全文
posted @ 2008-12-04 20:58 .net's 阅读(459) 评论(0) 推荐(0)