예제 #1
0
        void BindECs()
        {
            string UnitID = ddl_UnitID.SelectedValue;

            if (UnitID.Equals(""))
            {
                return;
            }

            ddl_ECID.Items.Clear();

            DataTable dt = ECTagDal.GetECByUnit(UnitID);

            foreach (DataRow dr in dt.Rows)
            {
                ddl_ECID.Items.Add(new ListItem(dr["Name"].ToString(), dr["ID"].ToString()));
            }
        }