protected void btnGuardarMateria_Click(object sender, EventArgs e)
    {
        pnlError.Visible = false;
        pnlSucess.Visible = false;

        String textoValidacion = validarMateria(false);
        if (textoValidacion.Equals(""))
        {
            MATERIA materia = new MATERIA();
            materia = materia.addMateria(txtNombreMateria.Text, txtPuntos.Text, 1);
            cargarMaterias();
            lblSucess.Text = "Se creo Correctamente la Materia";
            pnlSucess.Visible = true;
        }
        else
        {
            lblError.Text = textoValidacion;
            pnlError.Visible = true;
        }
    }
    protected void btnGuardarMateria_Click(object sender, EventArgs e)
    {
        pnlError.Visible  = false;
        pnlSucess.Visible = false;

        String textoValidacion = validarMateria(false);

        if (textoValidacion.Equals(""))
        {
            MATERIA materia = new MATERIA();
            materia = materia.addMateria(txtNombreMateria.Text, txtPuntos.Text, 1);
            cargarMaterias();
            lblSucess.Text    = "Se creo Correctamente la Materia";
            pnlSucess.Visible = true;
        }
        else
        {
            lblError.Text    = textoValidacion;
            pnlError.Visible = true;
        }
    }