protected void Registrarme_Click(object sender, EventArgs e)
        {
            /*
             *    if (ConexionLogin.CrearCuentas(cedula.Text,nomC.Text, fechaini.Text, gmail.Text,celular.Text,direccion.Text,contraseña.Text) > 0)
             *    {
             *        Response.Write("script>window.alert('El estudiante se agrego correctamente')</script>");
             *    }
             *    else
             *
             * Response.Write("script>window.alert('Error al registrar los datos del estudiante')</script>");*/

            ConexionLogin pr = new ConexionLogin();
            string        Cedula, nombre, fecha, correo, telefono, direc, pContraseña;

            Cedula      = cedula.Text;
            nombre      = nomC.Text;
            fecha       = fechaini.Text;
            correo      = gmail.Text;
            telefono    = celular.Text;
            direc       = direccion.Text;
            pContraseña = contraseña.Text;

            pr.inserDatos(Cedula, nombre, fecha, correo, telefono, direc, pContraseña);



            Response.Write("<script>window.alert('Solicitud agregada')</script>");
        }
        protected void RegistarNuevaCarrera_Click(object sender, EventArgs e)
        {
            ConexionLogin pr = new ConexionLogin();
            string        nombre, codigo;

            nombre = txtNombreCarrera.Text;
            codigo = txtCodCarrera.Text;

            pr.insertarcarrera(nombre, codigo);



            Response.Write("<script>window.alert('Solicitud agregada')</script>");
        }
Example #3
0
        protected void IngresarPeríodo_Click(object sender, EventArgs e)
        {
            ConexionLogin pr = new ConexionLogin();
            string        año, cuatri, monto;

            año    = perido.SelectedItem.Value;
            cuatri = DropDownList1.SelectedItem.Value;
            monto  = Monto.Text;

            pr.insertarperiodo(año, cuatri, monto);



            Response.Write("<script>window.alert('Solicitud agregada')</script>");
        }
        protected void Registrar_Click(object sender, EventArgs e)
        {
            ConexionLogin pr = new ConexionLogin();
            string        Cedula, nombre, telefono1, espe, nombre_carrera, pContraseña;

            Cedula         = cedula.Text;
            nombre         = Nombre.Text;
            telefono1      = telefono.Text;
            espe           = especialidad.Text;
            nombre_carrera = Dropcarrers.SelectedItem.Value;
            pContraseña    = contraseña.Text;

            pr.insertarprofe(Cedula, nombre, telefono1, espe, nombre_carrera, pContraseña);



            Response.Write("<script>window.alert('Solicitud agregada')</script>");
        }
Example #5
0
        protected void Button1_Click1(object sender, EventArgs e)
        {
            if (ConexionLogin.AutentificarEstud(txtUsuario.Text, txtContrasena.Text, roll3) > 0)
            {
                Response.Redirect("RegistroEstud.aspx");
            }
            else if (ConexionLogin.AutentificarProfe(txtUsuario.Text, txtContrasena.Text, roll2) > 0)
            {
                Response.Redirect("registroprofe.aspx");
            }

            /* else if (ConexionLogin.Autentificar(txtUsuario.Text, txtContrasena.Text, roll3) > 0)
             * {
             *   Response.Redirect("Periodos.aspx");
             *
             * }*/
            else
            {
                Response.Write("<script>window.alert('Los datos no son validos')</script>");
            }
        }
Example #6
0
        protected void IngresarMateria_Click(object sender, EventArgs e)
        {
            ConexionLogin pr = new ConexionLogin();
            string        Codigo, nombre, NombCarrera;
            int           Requisit, Campo, Profesor, Preci;

            Codigo   = Cod.Text;
            nombre   = NombMateria.Text;
            Requisit = Convert.ToInt32(Requisito.Text);
            Campo    = Convert.ToInt32(Campos.Text);
            //Profesor = Int32.Parse(ProfesorCarrera.SelectedValue.ToString());
            Profesor    = Convert.ToInt32(ProfesorCarrera.SelectedValue);
            Preci       = Convert.ToInt32(Precio.Text);
            NombCarrera = Carrera.SelectedItem.Value;

            pr.insertarMateria(Codigo, nombre, Requisit, Campo, Profesor, Preci, NombCarrera);



            Response.Write("<script>window.alert('Solicitud agregada')</script>");
        }