void LoadOrgWithChilds() { try { List <ATTOrganization> lstOrg = BLLOrganization.GetOrgWithChilds(orgID); DDLOrg.DataSource = lstOrg; DDLOrg.DataTextField = "OrgName"; DDLOrg.DataValueField = "OrgID"; DDLOrg.DataBind(); LoadCaseType(); } catch (Exception ex) { lblStatusMessage.Text = ex.Message; programmaticModalPopup.Show(); } }
void LoadOrgWithChilds() { try { List <ATTOrganization> lstOrg = BLLOrganization.GetOrgWithChilds(orgID); i = lstOrg.FindIndex(delegate(ATTOrganization att) { return(att.OrgID == orgID); }); DDLOrg.DataSource = lstOrg; DDLOrg.DataTextField = "OrgName"; DDLOrg.DataValueField = "OrgID"; DDLOrg.DataBind(); DDLOrg.SelectedIndex = i; } catch (Exception ex) { lblStatusMessage.Text = ex.Message; programmaticModalPopup.Show(); } }