private void CarregarMailings(int iIDCampanha) { mailingCTL CMailing = new mailingCTL(); CMailing.PreencherComboBox_Mailings(comboMailing, iIDCampanha); int iIDMailing = CMailing.RetornarMailingIndicacaoSupervisor(iIDCampanha); if (iIDMailing == 0) { comboMailing.SelectedValue = "-1"; } else { comboMailing.SelectedValue = iIDMailing.ToString(); } }
private void CarregarMailings(int iIDCampanha) { mailingCTL CMailing = new mailingCTL(); try { CMailing.CarregarDropdownMailings(dropMailing, iIDCampanha, true, false, false); int iIDMailing = CMailing.RetornarMailingIndicacaoSupervisor(iIDCampanha); if (iIDMailing == 0) { dropMailing.SelectedValue = "-1"; } else { dropMailing.SelectedValue = iIDMailing.ToString(); } } catch { } }