protected void btnGuardar_Click(object sender, EventArgs e)
 {
     if (f.LlamarSelectExiste(1))
     {
         f.LlamarUpdate(1);
         Type   cstype = this.GetType();
         string script = "<script language='javascript'>alert('!!Felicidades!!, Tu información se actualizó correctamente')</script>";
         this.ClientScript.RegisterStartupScript(cstype, Guid.NewGuid().ToString(), script, false);
     }
     else
     {
         f.LlamarInsert(1);
         Type   cstype = this.GetType();
         string script = "<script language='javascript'>alert('!!Felicidades!!, Tu información se guardo correctamente')</script>";
         this.ClientScript.RegisterStartupScript(cstype, Guid.NewGuid().ToString(), script, false);
         c.RegistrarFormulario(2, Convert.ToInt32(Session["alu_ID"]));
     }
     Server.Transfer("formulario_1.aspx", true);
 }
Exemple #2
0
        protected void btnSiguiente2_Click(object sender, EventArgs e)
        {
            UControl          control = new UControl();
            FacadeAspiranteSE f       = new FacadeAspiranteSE(this);

            if (f.LlamarSelectExiste(4))
            {
                f.LlamarUpdate(4);
                Type   cstype = this.GetType();
                string script = "<script language='javascript'>alert('!!Felicidades!!, Tu información se acualizó correctamente')</script>";
                this.ClientScript.RegisterStartupScript(cstype, Guid.NewGuid().ToString(), script, false);
            }
            else
            {
                f.LlamarInsert(4);
                control.RegistrarFormulario(5, Convert.ToInt32(Session["alu_ID"]));
                Type   cstype = this.GetType();
                string script = "<script language='javascript'>alert('!!Felicidades!!, Tu información se guardo correctamente')</script>";
                this.ClientScript.RegisterStartupScript(cstype, Guid.NewGuid().ToString(), script, false);
            }
            Server.Transfer("formulario_1.aspx", true);
        }