예제 #1
0
        private void VacunaLlenarDropDownList()
        {
            Vacunas vacu = new Vacunas();

            VacunaDropDownList.DataSource     = vacu.Listado(" * ", " 1=1 ", " ");
            VacunaDropDownList.DataTextField  = "Descripcion";
            VacunaDropDownList.DataValueField = "VacunaId";
            VacunaDropDownList.DataBind();
            VacunaDropDownList.Items.Insert(0, "Selecionar");
        }
예제 #2
0
 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();
 }