DataTable的使用

        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号
            }

       }

原文地址:https://www.cnblogs.com/luofuxian/p/2377473.html