private void MunicipioLlenarDropDownList() { Municipios municipio = new Municipios(); MunicipioDropDownList.DataSource = municipio.Listado(" * ", " 1=1 ", " "); MunicipioDropDownList.DataTextField = "Descripcion"; MunicipioDropDownList.DataValueField = "MunicipioId"; MunicipioDropDownList.DataBind(); MunicipioDropDownList.Items.Insert(0, "Selecionar"); }
private void Limpiar() { FechaLabel.Text = FechaLabel.Text; IdTextBox.Text = string.Empty; CentroSaludTextBox.Text = ""; ProvinciaDropDownList.ClearSelection(); MunicipioDropDownList.ClearSelection(); PacienteDropDownList.ClearSelection(); VacunaDropDownList.ClearSelection(); DosisTextBox.Text = string.Empty; FechaVacunaTextBox.Text = string.Empty; HistorialGridView.DataSource = null; HistorialGridView.DataBind(); }