10 2008 档案
摘要:GridView 事件GridView 控件可公开分页事件和排序事件,以及在创建当前行或将当前行绑定至数据时发生的事件。单击一个命令控件(例如,包含在 GridView 控件中作为其中的一部分的 Button 控件)时也会引发事件。下表描述了由 GridView 控件公开的事件。 RowCommand 在 GridView 控件中单击某个按钮时发生。此事件通常用于在该控件中单击某个按钮时执行某...
阅读全文
摘要: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...
阅读全文
摘要: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) 使...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;using System.Threading;namespace...
阅读全文
摘要:下文摘自:MSDN 类索引器(C# 编程指南) 索引器允许类或结构的实例按照与数组相同的方式进行索引。索引器类似于属性,不同之处在于它们的访问器采用参数。 在下面的示例中,定义了一个泛型类,并为其提供了简单的 get 和 set 访问器方法(作为分配和检索值的方法)。Program 类为存储字符串创建了此类的一个实例。 CodeCode highlighting produced by Acti...
阅读全文
摘要:之前有个朋友问我在windows窗体上拖一个LABEL,然后在窗体加载后,取当前时间给它,这样为什么不能让LABEL和系统的时间同步变化。实现这个其实有两种方法,有非常简单的是用Timer控件。然而,一直没有用过线程,找了点资料还是可以实现的: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http:...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;us...
阅读全文
摘要:这个也写的很简单: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.ComponentModel;using Syst...
阅读全文
摘要:一直都没写过windows应用程序,今天写了几个操作文件的,非常简单: CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using Syst...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> protected void gvwCaseList_RowDataBound(object sender, GridViewRowEventArgs e) { ...
阅读全文
摘要:CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->using System;using System.Collections.Generic;using System.Text;using System.Collections;namespac...
阅读全文