protected void btnEditarMateria_Click(object sender, EventArgs e) { String textoValidacion = validarMateria(true); if (textoValidacion.Equals("")) { MATERIA materia = new MATERIA(); materia.refreshMateria(Convert.ToInt32(lblMateriaId.Text), txtNombreMateria.Text, txtPuntos.Text, 1); cargarMaterias(); lblSucess.Text = "Se edito Correctamente el Materia"; pnlSucess.Visible = true; } else { lblError.Text = textoValidacion; pnlError.Visible = true; } }