摘要:面的这个例子提供了DataGrid的分页功能。aspx代码和Cohe Behind代码分别如下,注意更改数据录连接字符串。结果如下:C#版本 例子DataGridPaging.aspx DataGridPaging.aspx.csusing System;using System.Collections;using System.ComponentModel;using System.Data;u...
阅读全文
09 2004 档案
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要: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...
阅读全文
摘要:ASP.NET中使用web.config中的数据 在web.config中加入<appSettings><add key="SQLConnectionString" value="server=xxxx;database=xxx;uid=sa;pwd=sa" /></appSettings>在程序中,使用以下代码获取SQLConnectionString//c#...
阅读全文
摘要:搜索目录里所有文件(包括子目录) 资料来源:http://www.cnblogs.com/jjwwww/archive/2004/09/04/39559.aspx用到两个函数ParseDirectory 和CreatePathListvoidParseDirectory(stringpath,stringfilter){string[]dirs=Directory.GetDirectories(p...
阅读全文
摘要:http://www-900.ibm.com/developerWorks/cn/xml/x-dochan.shtml有时候 SAX 文档处理程序的代码可能变得非常麻烦、结构性差而且难以维护,尤其是对于那些包含多种不同元素的复杂 XML 结构。本文介绍了应对这种问题的设计策略,从而有助于改进代码的质量和可维护性。要将 SAX 接口用于 XML 文件,需要编写一个文档处理程序类,在处理程序类的方法中...
阅读全文

浙公网安备 33010602011771号