2007年11月8日

摘要: 1. 在2.0之前的c#版本中,声明委托的唯一方法是使用命名方法。 this.Load+= new System.EventHandler(this.Form1_Load); protected void Form1_Load(object sender, EventArgs e) { MessageBox.Show("委托"); } ... 阅读全文
posted @ 2007-11-08 20:34 董昊(昊子) 阅读(535) 评论(0) 推荐(0) 编辑
摘要: 1. 可空类型是System.Nullbale 2. 可空类型可以表示其基础类型正常范围内的值,再加上一个null值 例如:Nullable 简化写法版:Nullable n=null; int? n=null; 3. System.Nullbale结构 public bool HasValue {get;}是否有值 public ... 阅读全文
posted @ 2007-11-08 17:03 董昊(昊子) 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 什么是迭代器? 迭代器是方法、get访问器或运算符,它能使您能够在类或者结构中支持foreach迭代,而不必实现整个IEnumerable接口。 例子: public class YieldTest { public static IEnumertable Power(int number ,int exponent) { int counter=0; int res... 阅读全文
posted @ 2007-11-08 17:02 董昊(昊子) 阅读(163) 评论(0) 推荐(0) 编辑
摘要: Parital Classes(分部类) 1. C#2.0可以将类、结构或者接口的定义拆分到两个或多个源文件中,在类声明前添加partial关键字。 public partial class _Default : System.Web.UI.Page { protected void Dotest1() { } } public parti... 阅读全文
posted @ 2007-11-08 17:01 董昊(昊子) 阅读(266) 评论(0) 推荐(0) 编辑

2007年10月21日

摘要: 微软在早些时候宣布,在2008年2月的产品发布会上推出Visual Studio 2008,Windows Server 2008和SQL Server 2008。但微软开发者分部的企业副主席Somasegar表示,微软倾向于在今年年底推出Visual Studio 2008。那么对开发者来说,今年已经是Visual Studio 2008了,你准备好了吗? Visual Studio 2008是... 阅读全文
posted @ 2007-10-21 19:37 董昊(昊子) 阅读(630) 评论(4) 推荐(0) 编辑
摘要: WebParts概述 本质: WebParts把网页隔成了一个一个更小的空间。http://www.3721.com/就是一个WebParts的例子。 VS2005控件图 WebPartManager W... 阅读全文
posted @ 2007-10-21 19:36 董昊(昊子) 阅读(852) 评论(0) 推荐(0) 编辑
摘要: FilteredTextBox控件是一个非常有用的控件,使用他能直接过滤一些字符。 例子: 一:只允许数字 二:只允许输入小字字母 三:只允许输入(+,-,*,/,=,.)和数字 四:不允许输入数字 属性 ... 阅读全文
posted @ 2007-10-21 19:33 董昊(昊子) 阅读(277) 评论(0) 推荐(0) 编辑
摘要: · TargetControlID - The ID of the button or link for this extender to operate on · Width – 阴影的宽度,默认是5. · Opacity -阴影的透明度(0(不透明)-1.0(全不透明))默认是5. ... 阅读全文
posted @ 2007-10-21 19:33 董昊(昊子) 阅读(279) 评论(1) 推荐(0) 编辑
摘要: 图例: 注意,”请选择“ 的是个文本框 控件简介: TargetControlID –需要附加下拉列表的文本框ID DropDownControlID –下拉列表(Panel)ID Animations-动画效果,可以查看altas(ajax)控件(三):动画制作控件AnimationExtender 阅读全文
posted @ 2007-10-21 19:29 董昊(昊子) 阅读(514) 评论(0) 推荐(0) 编辑
摘要: 使用非常简单: 用鼠标拖动 This panel will reset its position on a pos... 阅读全文
posted @ 2007-10-21 19:28 董昊(昊子) 阅读(436) 评论(0) 推荐(0) 编辑

导航