protected void BtnGuardar_Click(object sender, EventArgs e) { LlenarCamposInstancia(); if (ProfesoresBLL.Guardar(profesores)) { IDTextBox.Text = profesores.ProfesorId.ToString(); //MensajeGuardado.Text = "Gardo"; Limpiar(); } }
private void Filtrar() { if (FiltrarDropDownList.SelectedIndex == 0) { Lista = ProfesoresBLL.GetListAll(); } else if (FiltrarDropDownList.SelectedIndex != 0) { if (FiltrarDropDownList.SelectedIndex == 2) { Lista = ProfesoresBLL.GetList(p => p.Nombre == FiltrarTextBox.Text); } if (FiltrarDropDownList.SelectedIndex == 1) { int id = Utilidades.TOINT(FiltrarTextBox.Text); Lista = ProfesoresBLL.GetList(p => p.ProfesorId == id); } } LlenarGriw(); }