摘要: 遍历查询窗体界面的textbox为空值 foreach (System.Windows.Forms.Control control in this.Controls) { if (control is TextBox) { TextBox tx = (TextBox)control; tx.Text = string.Empty; } } 一列数的规则如下: 1、1、2、3、5、8、1... 阅读全文
posted @ 2012-05-17 15:38 念余温 阅读(411) 评论(0) 推荐(1) 编辑
摘要: 在页面上 <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand" > <ItemTemplate> <div style="width:200px; height:100px; background-color:Green;"><%#Container.DataItem%>> </div> </ItemTemplate> </ 阅读全文
posted @ 2012-05-17 09:37 念余温 阅读(2173) 评论(0) 推荐(1) 编辑
摘要: C# ArrayList的用法System.Collections.ArrayList类是一个特殊的数组。通过添加和删除元素,就可以动态改变数组的长度。一、优点1. 支持自动改变大小的功能2. 可以灵活的插入元素3. 可以灵活的删除元素4. 可以灵活访问元素二、局限性跟一般的数组比起来,速度上差些三、添加元素1.public virtual int Add(object value);将对象添加到ArrayList的结尾处ArrayList aList=new ArrayList();aList.Add("a");aList.Add("b");aList 阅读全文
posted @ 2012-05-17 09:34 念余温 阅读(715) 评论(0) 推荐(1) 编辑