示例#1
0
    public void conditionofitem()
    {
        db1.strCommand = "select Condition_of_item from DUT_info where Report_info_ID=" + reportid_hidden.Value;
        DataTable     dt = db1.selecttable();
        SqlDataReader dr = db1.dataread();

        if (dr.HasRows)
        {
            while (dr.Read())
            {
                lblconditionofitem.Text = dr["Condition_of_item"].ToString();
            }
        }
    }