DataSet ds = SchoolInfoSystem.GetSchoolInfoById(Id);
DataTable table = Set.Tables[0];
this.Label5.Text = table.Rows[0]["LoginName"].ToString();
this.Label6.Text = table.Rows[0]["SchoolName"].ToString();
this.Label7.Text = table.Rows[0]["nLogin_Times"].ToString();
this.Label8.Text = table.Rows[0]["nLastTime"].ToString();这是代码!!!!!这有什么问题? 怎么解决啊
这一句编译错误!!!
DataTable table = Set.Tables[0];
大哥。上面是ds
下面怎么就变 set了???
= =
DataTable table = ds.Tables[0];
这样就好了
DataSet ds = SchoolInfoSystem.GetSchoolInfoById(Id);
DataTable table = ds.Tables[0];
this.Label5.Text = table.Rows[0]["LoginName"].ToString();
this.Label6.Text = table.Rows[0]["SchoolName"].ToString();
this.Label7.Text = table.Rows[0]["nLogin_Times"].ToString();
this.Label8.Text = table.Rows[0]["nLastTime"].ToString();粗心哦!