08 2007 档案

摘要:January 13, 2004 Get the code here! Introduction Tools like ASP.NET greatly simpli... 阅读全文
posted @ 2007-08-25 14:36 过河卒A 阅读(529) 评论(0) 推荐(0)
摘要:public static string Enquote(string s) { if (s == null || s.Length == 0) { return "\"\""; } char c; int i; int len = s.Length; ... 阅读全文
posted @ 2007-08-20 18:46 过河卒A 阅读(2326) 评论(0) 推荐(0)
摘要:介绍我的一个朋友在一个正在开发的项目(一个博客网站)中遇到了一些问题,是关于文本编辑器的。在研究了所有免费的编辑器之后,他发现没有一个是他所需要的,所以我接下了这个任务,帮他开发一个HTML在线编辑器的用户控件,我认为和大家分享这个控件是个好主意,达到了知识共享的目的。这个编辑器包括如下一些特性1、工具栏包括了全部的功能(下面已列出) ·排列(居左,居中,居右) ·字体格式(加粗... 阅读全文
posted @ 2007-08-14 09:07 过河卒A 阅读(739) 评论(0) 推荐(0)
摘要:Maverick.Net介绍 Maverick.Net是Java社区开源MVC Web框架Maverick的.Net版本,相关资料可以查看项目主页。 不管Maverick.Net的是非好坏,了解一下它的思想还是不错的。下面的内容是对Maverick.Net整体做一个简单的介绍,以求能够从全局的角度了解Maverick.Net一些相关概念,大致如何工作。 另外,本人... 阅读全文
posted @ 2007-08-13 19:05 过河卒A 阅读(636) 评论(0) 推荐(0)
摘要:下面的代码示例演示如何使用 ParentNodeStyle 属性控制 TreeView 控件中父节点的外观。view plaincopy to clipboardprint? TreeView ParentNodeStyle Example ... 阅读全文
posted @ 2007-08-11 14:12 过河卒A 阅读(1130) 评论(0) 推荐(0)
摘要:TreeView.DrawMode 属性的C#例子下面的代码示例演示如何使用所有者描述来自定义 TreeView 控件。此示例中的 TreeView 控件在标准节点标签旁边显示可选的节点标记。使用 TreeNode.Tag 属性指定节点标记。TreeView 控件也使用自定义颜色,包括自定义突出显示颜色。view plaincopy to clipboardprint?public TreeVie... 阅读全文
posted @ 2007-08-11 14:10 过河卒A 阅读(990) 评论(0) 推荐(0)
摘要:下面的代码示例演示如何实现自定义集合的 IEnumerable 接口。在此示例中,没有显式调用但实现了 GetEnumerator,以便支持使用 foreach(在 Visual Basic 中为 for each)。此代码示例摘自 IEnumerable 接口的一个更大的示例。view plaincopy to clipboardprint?public class People : IEnum... 阅读全文
posted @ 2007-08-11 14:06 过河卒A 阅读(8156) 评论(3) 推荐(0)
摘要:下面的代码示例演示如何使用 GetEnumerator 方法来创建 System.Collections.IEnumerator 接口,该接口可被循环访问以显示 DataGridColumnCollection 集合的内容。view plaincopy to clipboardprint? DataGridCo... 阅读全文
posted @ 2007-08-11 14:05 过河卒A 阅读(984) 评论(0) 推荐(0)
摘要:示例说明如何使用 GetEnumerator 方法创建一个实现了 System.Collections.IEnumerator 的对象。然后循环访问该对象以显示选定行中的项。view plaincopy to clipboardprint? TableCellCollection Example ... 阅读全文
posted @ 2007-08-11 14:04 过河卒A 阅读(1204) 评论(0) 推荐(0)
摘要:下面的代码示例使用 GetEnumerator 方法显示输入字符串中的每个 System.Char。view plaincopy to clipboardprint?// Example for the String.GetEnumerator( ) method. using System; using System.Collections; class GetEnumerato... 阅读全文
posted @ 2007-08-11 14:02 过河卒A 阅读(2009) 评论(0) 推荐(0)
摘要:下面的示例演示如何使用 GetEnumerator 方法检索一个枚举数,该枚举数包含集合中的值。然后,循环访问该枚举数,并将第一个单元格的值显示在页上。view plaincopy to clipboardprint? GridViewRowCollection GetEnumerator Example ... 阅读全文
posted @ 2007-08-11 13:59 过河卒A 阅读(787) 评论(1) 推荐(0)
摘要:下面的代码示例阐释了如何使用 GetEnumerator 方法。view plaincopy to clipboardprint?// Get 'Validators' of the page to myCollection. ValidatorCollection myCollection = Page.Validators; // Get the Enumerator. IEn... 阅读全文
posted @ 2007-08-11 13:57 过河卒A 阅读(318) 评论(0) 推荐(0)
摘要:下面的示例展示如何使用 GetEnumerator 方法创建一个实现了 System.Collections.IEnumerator 的对象,该对象被循环访问以显示表中的项。view plaincopy to clipboardprint? TableCellCollection Example ... 阅读全文
posted @ 2007-08-11 13:56 过河卒A 阅读(1166) 评论(0) 推荐(0)
摘要:下面的代码示例演示如何使用 GetEnumerator 方法创建 System.Collections.IEnumerator 对象。然后循环访问 System.Collections.IEnumerator 对象以显示 HtmlTableRowCollection 集合的内容。view plaincopy to clipboardprint? ... 阅读全文
posted @ 2007-08-11 13:54 过河卒A 阅读(627) 评论(0) 推荐(0)
摘要:下面的示例说明 GetEnumerator 方法的用法。包括在枚举数为活动的情况下从基础 DataTable 中删除行时枚举数的行为。view plaincopy to clipboardprint?public static void Main() { try { DataTable userTable = new DataTable("people... 阅读全文
posted @ 2007-08-11 13:43 过河卒A 阅读(3184) 评论(0) 推荐(0)
摘要:--> 下面的代码示例演示如何使用此构造函数将节点动态添加到 TreeView 控件。 1 2 3 49 50 51 52 53 54 TreeNode Constructor Example 55 56 57 58 59 60 61 ... 阅读全文
posted @ 2007-08-11 13:41 过河卒A 阅读(1847) 评论(0) 推荐(0)