this.TbEmployeesName.Text = ds.Tables[0].Rows[0]["StaffName"].ToString();

来源:学生作业帮助网 编辑:作业帮 时间:2024/05/10 10:57:03
this.TbEmployeesName.Text = ds.Tables[0].Rows[0][

this.TbEmployeesName.Text = ds.Tables[0].Rows[0]["StaffName"].ToString();
this.TbEmployeesName.Text = ds.Tables[0].Rows[0]["StaffName"].ToString();

this.TbEmployeesName.Text = ds.Tables[0].Rows[0]["StaffName"].ToString();
ds是DataSet,多个DataTable的集合
ds.Tables[0].Rows[0]["StaffName"]表示DataSet的第一个Table的第一行的StaffName的值.
.ToString()在转换成字符串.
this.TbEmployeesName.Text 当前页面id为TbEmployeesName的文本框显示的文字.