摘要: 察看本文应用于的产品 文章编号 : 306355 最后修改 : 2002年7月11日 修订 : 1.0 本文的发布号曾为 CHS306355 本页 概要 ASP.NET 中的新功能 如何使用 Page_Error 事件 如何使用 Application_Error 事件 如何使用 Web.config 文件 疑难解答 参考 概要 本... 阅读全文
posted @ 2008-11-06 10:10 chunchill 阅读(294) 评论(0) 推荐(0) 编辑
摘要: GridView 事件GridView 控件可公开分页事件和排序事件,以及在创建当前行或将当前行绑定至数据时发生的事件。单击一个命令控件(例如,包含在 GridView 控件中作为其中的一部分的 Button 控件)时也会引发事件。下表描述了由 GridView 控件公开的事件。 RowCommand 在 GridView 控件中单击某个按钮时发生。此事件通常用于在该控件中单击某个按钮时执行某... 阅读全文
posted @ 2008-10-30 17:12 chunchill 阅读(192) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Secur... 阅读全文
posted @ 2008-10-30 14:29 chunchill 阅读(274) 评论(0) 推荐(0) 编辑
摘要: C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\aspnet_regiis -i -enable 当在一台计算机上并行执行多个 .net Framework 版本时,映射到 ASP.NET 应用程序的 ASP.NET ISAPI 版本决定了该应用程序所使用的公共语言运行库版本。ASP.NET IIS 注册工具 (Aspnet_regiis.exe) 使... 阅读全文
posted @ 2008-10-29 09:49 chunchill 阅读(422) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace... 阅读全文
posted @ 2008-10-16 17:19 chunchill 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 下文摘自:MSDN 类索引器(C# 编程指南) 索引器允许类或结构的实例按照与数组相同的方式进行索引。索引器类似于属性,不同之处在于它们的访问器采用参数。 在下面的示例中,定义了一个泛型类,并为其提供了简单的 get 和 set 访问器方法(作为分配和检索值的方法)。Program 类为存储字符串创建了此类的一个实例。 CodeCode highlighting produced by Acti... 阅读全文
posted @ 2008-10-16 17:02 chunchill 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 之前有个朋友问我在windows窗体上拖一个LABEL,然后在窗体加载后,取当前时间给它,这样为什么不能让LABEL和系统的时间同步变化。实现这个其实有两种方法,有非常简单的是用Timer控件。然而,一直没有用过线程,找了点资料还是可以实现的: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http:... 阅读全文
posted @ 2008-10-16 16:49 chunchill 阅读(179) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;us... 阅读全文
posted @ 2008-10-16 12:28 chunchill 阅读(557) 评论(0) 推荐(0) 编辑
摘要: 这个也写的很简单: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.ComponentModel;using Syst... 阅读全文
posted @ 2008-10-15 17:04 chunchill 阅读(811) 评论(1) 推荐(0) 编辑
摘要: 一直都没写过windows应用程序,今天写了几个操作文件的,非常简单: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using Syst... 阅读全文
posted @ 2008-10-15 14:38 chunchill 阅读(229) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> protected void gvwCaseList_RowDataBound(object sender, GridViewRowEventArgs e) { ... 阅读全文
posted @ 2008-10-14 10:52 chunchill 阅读(196) 评论(0) 推荐(0) 编辑
摘要: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;using System.Collections;namespac... 阅读全文
posted @ 2008-10-07 11:16 chunchill 阅读(164) 评论(0) 推荐(0) 编辑
摘要: 这里有一个名为 "countries.xml" 的 XML 文件: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->ChinaCSwedenSFranceFItalyI 请查看该文件:countries.xml 把 DataSet... 阅读全文
posted @ 2008-09-28 14:00 chunchill 阅读(190) 评论(0) 推荐(0) 编辑
摘要: SortedList 对象 SortedList 对象包含用键/值对表示的项目。SortedList 对象可按照字符顺序或数字顺序自动地对项目进行排序。 通过 Add() 方法向 SortedList 添加项目。SortedList 可通过 TrimToSize() 方法调整为最终尺寸。 下面的代码创建了一个名为 mycountries 的 SortedList,并添加了四个元素: ... 阅读全文
posted @ 2008-09-28 11:40 chunchill 阅读(226) 评论(0) 推荐(0) 编辑
摘要: 创建 Hashtable Hashtable 对象包含用键/值对表示的项目。键被用作索引,通过搜索其键,可以实现对值的快速搜索。 通过 Add() 方法向 Hashtable 添加项目。 下面的代码创建一个名为 mycountries 的 Hashtable,并添加了四个元素: CodeCode highlighting produced by Actipro CodeHighlighter... 阅读全文
posted @ 2008-09-28 11:21 chunchill 阅读(235) 评论(0) 推荐(0) 编辑