Dataset的结果集的读取:
//if (Dataset.Tables[0].Rows.Count != 0)
            //if (Dataset. != 0)
            //{
                //this.txtOftenName.Text = Dataset.Tables[0].Rows[0]["name"].ToString();
            //}
Datareader的读取:
 Datareader= DABusiness.MemberFltUserInfo.GetSpecifyUserInfo(UserId, name);
           
            //遍历结果           
            while (Datareader.Read())
            {
                //常用姓名
                this.txtOftenName.Text.Trim() = (string)Datareader["name"];

相关文章:

  • 2021-12-16
  • 2022-03-01
  • 2021-06-13
  • 2022-03-10
  • 2021-12-01
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2021-06-09
相关资源
相似解决方案