protected void btnAceptar_Click(object sender, EventArgs e) { AlumnoInscripcion aluIns = new AlumnoInscripcion(); aluIns.ID = Convert.ToInt32(txtIDInscripcion.Text); aluIns.Nota = Convert.ToInt32(ddlNota.SelectedValue); AluInscLogic aluInsLogic = new AluInscLogic(); aluInsLogic.UpdateNota(aluIns); this.formPanelInscripcion.Visible = false; this.LoadGridAlumnosInscriptos(this.SelectedIDCurso); }
private void btnGuardar_Click(object sender, EventArgs e) { AlumnoInscripcion aluIns = new AlumnoInscripcion(); aluIns.ID = this.IdInsc; aluIns.Nota = Convert.ToInt32(this.cbxNota.SelectedItem); AluInscLogic aluInscLog = new AluInscLogic(); try { aluInscLog.UpdateNota(aluIns); } catch (Exception ex) { MessageBox.Show(ex.Message); } finally { this.Close(); } }