protected void btnEliminarMateria_Click(object sender, EventArgs e)
    {
        String textoValidacion = validarMateria(true);

        if (textoValidacion.Equals(""))
        {
            MATERIA materia = new MATERIA();
            materia.deleteMateria(Convert.ToInt32(lblMateriaId.Text));
            cargarMaterias();

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

            lblSucess.Text = "Se elimino Correctamente el Materia";
            pnlSucess.Visible = true;

        }
        else
        {
            lblError.Text = textoValidacion;
            pnlError.Visible = true;
        }
    }