コード例 #1
0
        protected void btnAC_Click(object sender, EventArgs e)
        {
            if (IsValid)
            {
                try
                {
                    FacadeAspirante fa = new FacadeAspirante(this);
                    int             id = (int)Session["alu_ID"];

                    fa.UpdateEscuela(id);
                    Mensaje("TU INFORMACIÓN HA SIDO ACTUALIZADA ", "alert alert-success");


                    if (btnGuardar.Text == "GUARDAR")
                    {
                        dao.InsertEsc(llenarAlumCom(), alu_ID);
                        enc.Insert(3, alu_ID);
                        Response.Redirect("InformacionFamiliar.aspx");
                    }
                }
                catch (Exception ex)
                {
                    Mensaje("NO SE HA PODIDO REALIZAR LA OPERACIÓN , INTENTELO MÁS TARDE", "alert alert-danger");
                }
            }
        }
コード例 #2
0
        protected void btnAC_Click(object sender, EventArgs e)
        {
            if (IsValid)
            {
                try
                {
                    FacadeAspirante fa = new FacadeAspirante(this);
                    int             id = (int)Session["alu_ID"];

                    fa.UpdateEscuela(id);
                    enc.Insert(3, id);


                    if (btnGuardar.Text == "GUARDAR")
                    {
                        Response.Redirect("InformacionFamiliar.aspx");
                    }
                }
                catch (Exception ex)
                {
                    throw;
                }
            }
        }