04 2010 档案

摘要:DropdownList下拉列表控件的使用一,绑定数据 1.用代码的方式添加列表项(.cs) this.DropDownList1.Items.Add(new ListItem("aaa")); this.DropDownList1.Items.Add(new ListItem("bbb")); this.DropDownList1.Items.Add(new ListItem("ccc")); ... 阅读全文
posted @ 2010-04-20 20:25 @kai 阅读(2411) 评论(0) 推荐(0)
摘要:*连接对象的用法SqlConnection,SqlCommand,SqlDataAdapter*数据访问方式的写法1.获取数据://引用这两个命名空间 using System.Data.SqlClient;using System.Data; // 初始化连接对象 SqlConnection conn = new SqlConnection(); conn.ConnectionString = ... 阅读全文
posted @ 2010-04-19 20:53 @kai 阅读(28477) 评论(1) 推荐(3)