protected void btConfirmar_Click(object sender, EventArgs e)
        {
            CalificacionesTableAdapter calificaciones = new CalificacionesTableAdapter();

            int IDcal = int.Parse(ViewState["IdEditarCal"].ToString());

            calificaciones.ModCalifByIdCal((int)ViewState["valorCal"], ViewState["alpha"].ToString(), IDcal);
            DataUpdate.UpdateDatosEstudiante(calificaciones.GetIdEstByIdCal(IDcal));
            Response.Redirect("Administradores");
        }
예제 #2
0
        protected bool InsertCal(int cal)
        {
            CalificacionesTableAdapter calificaciones = new CalificacionesTableAdapter();

            calificaciones.Insert(RadioButtonList2.SelectedValue, Session["IdProf"].ToString(), cal, ViewState["alpha"].ToString(), RadioButtonList1.SelectedValue);


            DataUpdate.UpdateEnUsoEntities(RadioButtonList2.SelectedValue, Session["IdProf"].ToString(), RadioButtonList1.SelectedValue);

            return(true);
        }
예제 #3
0
        protected void BtAgregar_Click(object sender, EventArgs e)
        {
            string flag = RadioButtonList1.SelectedValue + RadioButtonList2.SelectedValue;

            if (Session[flag] != null)
            {
                Response.Redirect("Profesores");
            }
            Session[flag] = RadioButtonList1.SelectedValue + RadioButtonList2.SelectedValue;

            InsertCal((int)ViewState["valorCal"]);
            DataUpdate.UpdateDatosEstudiante(RadioButtonList2.SelectedValue);


            wcAgregar.Visible  = false;
            subWcFinal.Visible = true;
        }