private void LlenarCombo() { AnalisisDropdownList.Items.Clear(); RepositorioBase <Analisis> repositorio = new RepositorioBase <Analisis>(); AnalisisDropdownList.DataSource = repositorio.GetList(x => true); AnalisisDropdownList.DataValueField = "AnalisisID"; AnalisisDropdownList.DataTextField = "AnalisisID"; AnalisisDropdownList.DataBind(); }
private void Limpiar() { IdTextBox.Text = string.Empty; AnalisisDropdownList.ClearSelection(); fechaTexbox.Text = DateTime.Now.ToString(); MontoTextBox.Text = 0.ToString(); BalanceTextBox.Text = 0.ToString(); ViewState["Pago"] = new Pago(); LlenarCombo(); this.BindGrid(); }
private void LlenarCombo() { AnalisisDropdownList.Items.Clear(); RepositorioAnalisis repositorioAnalisis = new RepositorioAnalisis(); List<Analisis> lista = repositorioAnalisis.GetList(x => x.Balance > 0); repositorioAnalisis.Dispose(); AnalisisDropdownList.DataSource = lista; AnalisisDropdownList.DataValueField = "AnalisisID"; AnalisisDropdownList.DataTextField = "AnalisisID"; AnalisisDropdownList.DataBind(); AnalisisDropdownList_TextChanged(null, null); }