程序人生

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

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

09 2004 档案

摘要:面的这个例子提供了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 啸天犬 阅读(456) 评论(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 啸天犬 阅读(254) 评论(0) 推荐(0)

摘要: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 啸天犬 阅读(1079) 评论(1) 推荐(0)

摘要: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 啸天犬 阅读(937) 评论(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 啸天犬 阅读(392) 评论(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 啸天犬 阅读(503) 评论(0) 推荐(0)

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