protected void btnContinuarAsig_Click(object sender, EventArgs e)
        {
            ViewState["Cambiar nombre"] = false;
            ViewState["Cambiar clave"]  = false;
            ViewState["credito"]        = false;

            this.lblWarnAsig.Visible = false;
            this.lblWarnrada.Visible = false;
            this.lblWarnTxt2.Visible = false;

            this.nombreasig.Visible  = false;
            this.claveasig.Visible   = false;
            this.creditoasig.Visible = false;

            //string[] datos = new string[3];
            //datos[0] = "Cambiar nombre";
            //datos[1] = "Cambiar clave";
            //datos[2] = "Cambiar no. de creditos";
            AsignaturasTableAdapter asignaturasTableAdapter = new AsignaturasTableAdapter();

            //this.CheckBoxListAsig.Items.s
            if (this.CheckBoxListAsig.SelectedValue != "")
            {
                foreach (ListItem item in this.CheckBoxListAsig.Items)
                {
                    if (item.Selected)
                    {
                        if (item.Text == "Cambiar nombre")
                        {
                            this.nombreasig.Visible     = true;
                            ViewState["Cambiar nombre"] = true;
                        }
                        if (item.Text == "Cambiar clave")
                        {
                            this.claveasig.Visible     = true;
                            ViewState["Cambiar clave"] = true;
                        }
                        if (item.Text == "Cambiar no. de creditos")
                        {
                            this.creditoasig.Visible = true;
                            ViewState["credito"]     = true;
                        }
                    }
                }
                this.lblProfesor.Text          = $"Cambiar asignatura {asignaturasTableAdapter.GetAsigName(ViewState["IdEditarAsig"].ToString())}";
                this.ElegirCambioAsig.Visible  = false;
                this.CambiarAsignatura.Visible = true;
            }
            else
            {
                this.lblWarnrada.Visible = true;
            }
        }
        protected void btnEditarAsignatura_Click(object sender, EventArgs e)
        {
            this.lblWarnAsig.Visible = false;
            this.lblWarnrada.Visible = false;
            this.lblWarnTxt2.Visible = false;
            AsignaturasTableAdapter asignaturaTableAdapter = new AsignaturasTableAdapter();

            if (this.radbtnAsignaturas.SelectedValue != "")
            {
                ViewState["IdEditarAsig"] = this.radbtnAsignaturas.SelectedValue.Substring(0, 6);
                this.lblElegirDatosa.Text = $"Elija que desea cambiar de la asignatura {asignaturaTableAdapter.GetAsigName(ViewState["IdEditarAsig"].ToString())}";
                this.CheckBoxListAsig.Items.Add("Cambiar nombre");

                this.asignatura.Visible       = false;
                this.ElegirCambioAsig.Visible = true;

                if (asignaturaTableAdapter.GetUse(ViewState["IdEditarAsig"].ToString()).ToString() == "si")
                {
                    this.claveasig.Visible   = false;
                    this.creditoasig.Visible = false;
                }
                else
                {
                    this.CheckBoxListAsig.Items.Add("Cambiar clave");
                    this.CheckBoxListAsig.Items.Add("Cambiar no. de creditos");

                    this.claveasig.Visible   = true;
                    this.creditoasig.Visible = true;
                }
            }
            else
            {
                this.lblWarnAsig.Visible = true;
            }
        }