2011年12月22日
摘要: CSV Exporter 阅读全文
posted @ 2011-12-22 23:30 noble_herb 阅读(274) 评论(0) 推荐(0) 编辑
  2011年11月9日
摘要: MEF 阅读全文
posted @ 2011-11-09 23:03 noble_herb 阅读(311) 评论(0) 推荐(0) 编辑
摘要: DockPanel 阅读全文
posted @ 2011-11-09 09:35 noble_herb 阅读(143) 评论(0) 推荐(0) 编辑
  2011年11月8日
摘要: AvalonDock is a WPF controls library which can be used to create a docking layout system like that is present in VisualStudio. It supports fly-out panes, floating windows, multiple docking manager in same window, styles and themes and it can host WinForms controls. 阅读全文
posted @ 2011-11-08 16:31 noble_herb 阅读(331) 评论(0) 推荐(0) 编辑
  2011年7月21日
摘要: private static int IntToBCD(int i) //十进制转BCD { return (((i / 10) << 4) + ((i % 10) & 0x0f)); } private static int BCDToInt(byte bcd) //BCD转十进制 { return (0xff & (bcd >> 4)) * 10 + (0xf & bcd); } 阅读全文
posted @ 2011-07-21 10:35 noble_herb 阅读(2174) 评论(0) 推荐(0) 编辑
  2011年2月14日
摘要: 以前也看到有朋友存在这个问题,当时没有在意。现在自己的项目中也遇到这种情况,略作研究,给大家分享一下。最终发现我的项目里面出现这种情况的原因是线程的创建和终结问题。解决办法有两种:A:在建立线程的时候指定这个线程是后台线程(.IsBackground属性为true).那么主线程关闭的时候它也会关闭.B:如果线程不是设置为后台线程,需要手动关闭,但是也有可能是abort不干净或者线程在等待什么的时候是不会关闭的.以上为转载,原文地址:http://www.cnblogs.com/moon2bird/archive/2009/01/22/1379843.html 阅读全文
posted @ 2011-02-14 10:55 noble_herb 阅读(663) 评论(0) 推荐(0) 编辑
  2010年5月3日
摘要: joomla 后台管理失效解决办法 阅读全文
posted @ 2010-05-03 22:14 noble_herb 阅读(907) 评论(0) 推荐(0) 编辑
  2009年9月10日
摘要: 1、访问文档中元素 document.getElementById(‘id’):获取给定id的元素,并将其作为对象。 document.getElementsByTagName(‘tagname’):获取所有标签名为tagname的元素,并把它保存在一个类似数组的列表中。 2、读取元素的属性、节点值及其它节点数据 node.getAttribute(‘attribute’):获取属性名为attri... 阅读全文
posted @ 2009-09-10 09:55 noble_herb 阅读(150) 评论(0) 推荐(0) 编辑
  2009年8月31日
摘要: 在 Web 应用当中!我们往往会用到很多 TextBox 来处理录入的信息。 在页面提交之前,在 TextBox 失去焦点的时候,可能就是要处理一下我们输入的信息。 比如: 1、对输入信息的校验 2、根据输入的信息对后面即将录入的信息的不同处理 3、需要回到服务端处理 等等... 基于这些要求啊!给 TextBox 加上 OnBlur 的服务端事件就可以了! 服务端就会自动生成根 ... 阅读全文
posted @ 2009-08-31 13:29 noble_herb 阅读(631) 评论(1) 推荐(0) 编辑
  2009年8月21日
摘要: gridview中使用<%# Container.DataItemIndex %>取得当前行的序号从而可以通过GridViewRow row = gv.Rows[Convert.ToInt32(e.CommandArgument)];取得Gridview中操作的行对象 而在repeater控件中使用Container.ItemIndex取得当前行的序号 阅读全文
posted @ 2009-08-21 11:12 noble_herb 阅读(230) 评论(0) 推荐(0) 编辑