SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["sql2005"].ConnectionString);
SqlDataAdapter adp = new SqlDataAdapter(); adp.SelectCommand.Connection = con; adp.SelectCommand.CommandType = CommandType.Text; adp.SelectCommand.CommandText = "SELECT id,name,pwd,class,age FROM member";
提示con对象为空
Smart猫小萌