摘要: string citysql = "select * from soncity;select * from partytype"; ds= DbHelperSQL.Query(citysql); s1.DataSource = ds.Tables[0].DefaultView; s1.DataTextField = "sonname"; s1.DataBind(); s2.DataSource =... 阅读全文
posted @ 2010-01-11 11:30 liuwei0214 阅读(664) 评论(0) 推荐(0) 编辑
摘要: (1) string SQL_Select = "select id, ItemName from DDLItem order by id desc"; //构造一个SqlDataAdapter SqlDataAdapter myAdapter = new SqlDataAdapter( SQL_Select, Conn); //开始读取数据 Conn.Open(); DataSet dataSe... 阅读全文
posted @ 2010-01-11 11:14 liuwei0214 阅读(849) 评论(0) 推荐(0) 编辑