2007年11月28日

学习ID,ClientID,UniqueID

摘要: gvData里有个lbl_UserIDID为 lbl_UserClientID 为gvData_ctl02_lbl_UserIDUniqueID 为gvData$ctl02$lbl_UserID 阅读全文

posted @ 2007-11-28 13:07 小乔的闺房 阅读(198) 评论(0) 推荐(0) 编辑

2007年11月15日

基础知识1

摘要: 命名空间可包括:另一个命名空间类接口委托结构枚举类可包括:构造函数析构函数常数字段属性索引器方法事件运算符类接口委托结构接口可包括:方法签名委托签名事件签名 阅读全文

posted @ 2007-11-15 14:57 小乔的闺房 阅读(166) 评论(0) 推荐(0) 编辑

2007年11月4日

(2)最简单的Remoting程序

摘要: (1) 编写3步走(类库)对象General(控制台应用程序)服务器端Server:添加对象的dll引用(控制台应用程序)客户端Client:添加对象的dll引用(2) 对象using System;using System.Collections.Generic;using System.Text;namespace RemotingExample{ public class Hello : M... 阅读全文

posted @ 2007-11-04 15:23 小乔的闺房 阅读(194) 评论(0) 推荐(0) 编辑

(1)将对象序列化为bin,soap,xml

摘要: (1) 在Remoting传递对象需要将对象序列化,本节先学习如何将对象序列化为bin,soap,xml主要知识点1. [Serializable]2. System.Runtime.Serialization.Formatters.Binary;3. System.Runtime.Serialization.Formatters.Soap;4. System.Xml.Serialization;... 阅读全文

posted @ 2007-11-04 14:21 小乔的闺房 阅读(208) 评论(0) 推荐(0) 编辑

2007年11月2日

(4)迭代器

摘要: 1. 为什么要使用迭代器,它的由来,请见(1)学习数组,集合,IEnumerable接口,引申学习迭代器2. 规则2.1 迭代器是可以返回相同类型的值的有序序列的一段代码.2.2 迭代器可用作方法,运算符或get访问器的代码体.2.3 迭代器代码使用yield return语句依次返回每个元素.yield break将终止迭代.2.4 可以在类中实现多个迭代器.每个迭代器都必须像任何类成员一样有唯... 阅读全文

posted @ 2007-11-02 10:46 小乔的闺房 阅读(253) 评论(0) 推荐(0) 编辑

(3)集合接口

摘要: 无 阅读全文

posted @ 2007-11-02 09:55 小乔的闺房 阅读(141) 评论(0) 推荐(0) 编辑

2007年11月1日

(1)学习数组,集合,IEnumerable接口,引申学习迭代器

摘要: 发展:数组-->集合-->泛型(1)数组1. 数组数据结构是System.Array类的一个实例.2. System.Array类的语法为[SerializableAttribute] [ComVisibleAttribute(true)] public abstract class Array : ICloneable, IList, ICollection, IEnumerable... 阅读全文

posted @ 2007-11-01 16:09 小乔的闺房 阅读(566) 评论(0) 推荐(0) 编辑

(2)学习集合,引申学习索引器和泛型

摘要: 有1个Person类,下面我们要在前台利用集合去定义3个Person对象,然后返回这3个对象的Namepublic class Person{ private string _firstName; private string _lastName; public string Name { get { return _firstName + _lastName; } } public Person... 阅读全文

posted @ 2007-11-01 10:21 小乔的闺房 阅读(222) 评论(0) 推荐(0) 编辑

2007年10月30日

自定义服务器控件(1)整体把握(未完待续)

摘要: (1)自定义服务器控件继承下面3个类之一ControlWebControlCompositeControl1.1 Control呈现过程语法[BindableAttribute(true)] [ThemeableAttribute(false)] public class Control : IComponent, IDisposable, IParserAccessor, IUrlResolu... 阅读全文

posted @ 2007-10-30 15:32 小乔的闺房 阅读(252) 评论(0) 推荐(0) 编辑

2007年10月22日

FindControl实现原理

摘要: public virtual Control FindControl(string id){ return this.FindControl(id, 0);}protected virtual Control FindControl(string id, int pathOffset){ string text; this.EnsureChildControls();//确定当前控件是否包含子控件... 阅读全文

posted @ 2007-10-22 16:13 小乔的闺房 阅读(897) 评论(0) 推荐(0) 编辑

导航