private void ClientInitial() { using (CommonCodeBusiness Business = new CommonCodeBusiness()) { drpNature.DataSource = Business.GetFactNatures(); drpNature.DataValueField = "Code"; drpNature.DataTextField = "Name"; drpNature.DataBind(); } }
private void ClientInitial() { //drpSpecimen using (CommonCodeBusiness Business = new CommonCodeBusiness()) { List <CommonCodeEntity> List = Business.GetCommonCodes("001"); var q = from p in List select new ListItem { Value = p.Code, Text = p.Name }; drpSpecimen.Items.Add(""); drpSpecimen.Items.AddRange(q.ToArray()); } }