|
全部语句是这样的啊:请大家指导一下,可能的问题,谢谢
string strConn = System.Configuration.ConfigurationSettings.AppSettings["datac"];
cn=new SqlConnection(strConn);
string sql = "select HouseInfoID,FloorName,HouseName,HousePrice,HouseNum,HouseBZH from HouseInfo";
SqlDataAdapter myda = new SqlDataAdapter(sql,cn);
cn.Open();
DataSet myds = new DataSet();
myda.Fill(myds,"HouseInfo");
DataGrid1.DataSource = myds;
DataGrid1.DataBind();
cn.Close(); |
|