摘要: String formatting in C# I couldn't find a quick reference to .NET string formatting using the String.Format() function, so I created this one. When I started working with the .NET framework, one t... 阅读全文
posted @ 2005-09-07 21:51 Elaine Shi 阅读(918) 评论(1) 推荐(0) 编辑
摘要: 追MM与设计模式 在java版看见了这篇文章,作者以轻松的语言比喻了java的32种模式,有很好的启发作用,但可惜没有给出具体的意思,我就在后边加上了:)这些都是最简单的介绍,要学习的话建议你看一下《ajva与模式》这本书。 创建型模式 1、FACTORY—追MM少不了请吃饭了,麦当劳的鸡翅和肯德基的鸡翅都是MM爱吃的东西,虽然口味有所不同,但不管你带MM去麦当劳或肯德基,只管向服务员说“来四个... 阅读全文
posted @ 2005-09-07 20:15 Elaine Shi 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 看到dudu关于递归控件的方法,想起以前实现过的递归控件以加入JS来将用户的动作写入日志: private void SetCtlClentProperty(String sSecID,Control ctrl) { if(ctrl!=null) { foreach (Control obj ... 阅读全文
posted @ 2005-09-07 19:37 Elaine Shi 阅读(412) 评论(0) 推荐(0) 编辑
摘要: base.Response.Write(string.Format("\r\n\t\t\t", text2)); this.LoadListBoxLeft(text1); this.LoadListBoxRight(text2); this.ListBoxLeft.Attributes.Add("ondblclick", "__doAddSelectedItem... 阅读全文
posted @ 2005-09-07 19:23 Elaine Shi 阅读(646) 评论(0) 推荐(0) 编辑
摘要: http://www.dotnettoolbox.com/toolbox/ViewCategory.aspx?ID=5发现这个工具:Reflector for .NET 。应该是利用到.net的反射吧,不过反射现在对我来说还很高深,慢慢来,不急不急.... 阅读全文
posted @ 2005-09-07 19:12 Elaine Shi 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 调整滚动条的宽度的JS代码: //设置滚动条的宽度 document.all("dvBody").style.width = document.body.clientWidth - 10; document.all("dvBody").style.height = document.body.clientHeight - document.all("dvBody... 阅读全文
posted @ 2005-09-07 17:56 Elaine Shi 阅读(4550) 评论(0) 推荐(0) 编辑
摘要: document.body.clientWidth^-^ 找了好久,终于找到了 可以参见这篇:javascript大全 http://syveen.cnblogs.com/articles/190799.html 阅读全文
posted @ 2005-09-07 16:55 Elaine Shi 阅读(751) 评论(0) 推荐(0) 编辑
摘要: /**//// /// 方法编号:05 /// 方法名称:SetMultiLayerHeader /// 内容摘要:创建DataGrid多层表头 /// 算法思路:建立一个ArrayList(1)来放置表征表头的ArrayList(2),通过这种结构来自动生成多层表头 /// 数组2的格... 阅读全文
posted @ 2005-09-07 14:05 Elaine Shi 阅读(744) 评论(2) 推荐(0) 编辑
摘要: 有时我们需要在datagrid里进行一些操作,比如多层表头,比如隐藏相同的列等等,很多朋友喜欢用OWC或其它方法来导出excel,其实还可以直接由datagrid导出为excel格式。 导出Excel#region 导出Excel /**//// /// 方法编号:07 /// 方法名称:ExportToExcel /// 内容摘要:将D... 阅读全文
posted @ 2005-09-07 14:02 Elaine Shi 阅读(1969) 评论(10) 推荐(0) 编辑
摘要: /**//// /// 方法编号:06 /// 方法名称:CombineRepeatedCell /// 内容摘要:文字相同的列的合并 /// 算法思路:将相同的连续单元格想象成“块”,将"块"放置在数据容器中,全部遍历相加需合并的单元格的rowspan,来进行合并隐藏的动作 /// ///... 阅读全文
posted @ 2005-09-07 13:49 Elaine Shi 阅读(564) 评论(2) 推荐(0) 编辑