部分代码如下
private void ModifyStudent_Load(object sender, EventArgs e)
{
txtID.Text = ShareClass.ID;
Init();
}
private void Init()
{
string mysqlstr = "select * from student where ID='"+txtID.Text.Trim()+"'";
ConnectionClass myconnection = new ConnectionClass();
DataSet myDataSet = myconnection.GetDataSet__(mysqlstr,"student");
txtName.Text = myDataSet.Tables["student"].Rows[0]["StudentName"].ToString();
txtPhone.Text = myDataSet.Tables["student"].Rows[0]["Phone"].ToString();
txtIdenID.Text = myDataSet.Tables["student"].Rows[0]["identifyID"].ToString();
txtAddress.Text = myDataSet.Tables["student"].Rows[0]["Address"].ToString();
string sex = myDataSet.Tables["student"].Rows[0]["Sex"].ToString();
已经添加了引用using System.Data;
仍然爆红,
麻烦了