DataTable的使用

来源:互联网 发布:宝果网络 编辑:程序博客网 时间:2024/05/20 01:37

        chexp1cls chexp = new chexp1cls();
        DataTable dt = new DataTable();
        dt = chexp.Getchexp1DB("0");
        string htmlspece_code="";
        if (dt.Rows.Count > 0)
        {
            if (dt.Rows[0]["cust_no"] != null)
            {
                this.cust_no.InnerHtml = dt.Rows[0]["cust_no"].ToString();//this.cust_no是html中的某个ID号
            }

       }