protected void btnCar_Click(object sender, EventArgs e) { TJDAL dal = new TJDAL(); List<CheckModelExt> lm = dal.GetTDictionaryIDByParentID("MaterialType-9999"); string ret = ""; for (int i = 0; i < lm.Count; i++) { ret += lm[i].ID.ToString() + "','"; } ret = ret.TrimEnd(','); type = ret; Data_Binding(type); }