程序人生

一头犁牛半块田,收也凭天,荒也凭天;粗茶淡饭饱三餐,早也香甜,晚也香甜;布衣得暖胜丝棉,长也可穿,短也可穿;草舍茅屋有几间,行也安然,住也安然;雨过天晴驾一船,鱼在一边,酒在一边;夜归儿女话灯前,今也有言,古也有言;日上三竿我独眠,谁是神仙,我是神仙

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2005年3月19日

摘要: http://www.cnblogs.com/helimin19/  http://www.cnblogs.com/exhjw/articles/121231.html 阅读全文
posted @ 2005-03-19 17:10 啸天犬 阅读(243) 评论(0) 推荐(0) 编辑

2004年10月11日

摘要: 好的页面层次规划使设计,扩充,维护,管理更为方便。我经常使用的是这样的一个层次结构: (+表示文件夹,-表示文件)+根目录-Index.htm(default.htm)[可有可无,就像一扇门,点击进入Index/Index.aspx]-web.config+Index[主页文件] -Index.aspx+Style[css样式文件] -MyCss.css+CommonUC[放一些公用的用户自定义控... 阅读全文
posted @ 2004-10-11 10:14 啸天犬 阅读(336) 评论(0) 推荐(0) 编辑

2004年9月14日

摘要: 面的这个例子提供了DataGrid的分页功能。aspx代码和Cohe Behind代码分别如下,注意更改数据录连接字符串。结果如下:C#版本 例子DataGridPaging.aspx DataGridPaging.aspx.csusing System;using System.Collections;using System.ComponentModel;using System.Data;u... 阅读全文
posted @ 2004-09-14 16:54 啸天犬 阅读(432) 评论(0) 推荐(0) 编辑

摘要: namespace DataGridDoubleClick{using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data;public class Form1 : System.Windows.Fo... 阅读全文
posted @ 2004-09-14 16:50 啸天犬 阅读(242) 评论(0) 推荐(0) 编辑

2004年9月8日

摘要: uses CommCtrl;function TreeNodeGetChecked(mTreeNode: TTreeNode): Boolean;var vTVItem: TTVItem;begin Result := False; if not Assigned(mTreeNode) or not Assigned(mTreeNode.TreeView) then Exit; vTVItem.m... 阅读全文
posted @ 2004-09-08 10:12 啸天犬 阅读(1047) 评论(1) 推荐(0) 编辑

2004年9月6日

摘要: IntroductionThe idea to write an online quiz came up when I was looking for an XML tutorial. I visited W3Schools.com and found not only the tutorial I was looking for, but more interestingly was an on... 阅读全文
posted @ 2004-09-06 21:31 啸天犬 阅读(912) 评论(0) 推荐(0) 编辑

摘要: ASP.NET中使用web.config中的数据 在web.config中加入<appSettings><add key="SQLConnectionString" value="server=xxxx;database=xxx;uid=sa;pwd=sa" /></appSettings>在程序中,使用以下代码获取SQLConnectionString//c#... 阅读全文
posted @ 2004-09-06 09:40 啸天犬 阅读(374) 评论(0) 推荐(0) 编辑

摘要: 搜索目录里所有文件(包括子目录) 资料来源:http://www.cnblogs.com/jjwwww/archive/2004/09/04/39559.aspx用到两个函数ParseDirectory 和CreatePathListvoidParseDirectory(stringpath,stringfilter){string[]dirs=Directory.GetDirectories(p... 阅读全文
posted @ 2004-09-06 09:38 啸天犬 阅读(483) 评论(0) 推荐(0) 编辑

摘要: http://www-900.ibm.com/developerWorks/cn/xml/x-dochan.shtml有时候 SAX 文档处理程序的代码可能变得非常麻烦、结构性差而且难以维护,尤其是对于那些包含多种不同元素的复杂 XML 结构。本文介绍了应对这种问题的设计策略,从而有助于改进代码的质量和可维护性。要将 SAX 接口用于 XML 文件,需要编写一个文档处理程序类,在处理程序类的方法中... 阅读全文
posted @ 2004-09-06 09:30 啸天犬 阅读(449) 评论(0) 推荐(0) 编辑

2004年7月6日

摘要: http://www-900.ibm.com/developerWorks/cn/xml/x-eleatt/index.shtml[B]推荐的指导原则[/B] 核心内容原则 如果认为要处理的信息属于用 XML 表示或传达的基本资料,就将其放在元素中。对于供人阅读的文档一般是指向读者传达的核心内容。对于面向机器的记录格式一般是指直接来自问题域的数据。如果认为该信息对于传递的主要信息而言是外围的或者附... 阅读全文
posted @ 2004-07-06 09:33 啸天犬 阅读(375) 评论(0) 推荐(1) 编辑