Example #1
0
        protected void Page_Load(object sender, EventArgs e)
        {
            PW3Entities ctx = new PW3Entities();

            sesion = (alumno)Session["usuario"];
            cargarDatos(sesion);
        }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     p   = (profesor)Session["usuario"];
     ctx = new PW3Entities();
     ps  = new ProfesorService(ctx);
     misCursos.InnerHtml = ps.getTablaCursos(p);
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ctx = new PW3Entities();
     a   = (alumno)Session["usuario"];
     als = new AlumnoService(ctx);
     tituloHomeAlumno.InnerText = als.getTituloHome(a);
     tablaMisCursos.InnerHtml   = als.getTablaCursos(a);
 }
Example #4
0
        protected void BotonModificarDatos_Click(object sender, EventArgs e)
        {
            PW3Entities          ctx = new PW3Entities();
            AutenticacionService aut = new AutenticacionService(sesion.mail, sesion.contraseƱa);
            alumno al = (from a in ctx.alumno where a.mail == sesion.mail
                         select a).First();

            al.nombre     = TexBoxNombre.Text;
            al.apellido   = TextBoxApellido.Text;
            al.contraseƱa = TextBoxPassNuevaRe.Text;
            ctx.SaveChanges();
            Session["usuario"] = aut.getAlumno();
        }
Example #5
0
 public ExamenService(PW3Entities _ctx)
 {
     this.ctx = _ctx;
 }
Example #6
0
 public ProfesorService(PW3Entities _ctx)
 {
     this.ctx = _ctx;
 }
Example #7
0
 public CursoService(PW3Entities _ctx)
 {
     this.ctx = _ctx;
 }
Example #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ctx = new PW3Entities();
     es  = new ExamenService(ctx);
     contenedorPreguntas.InnerHtml = es.getHTMLPreguntas(cantidad);
 }
Example #9
0
 public AlumnoService(PW3Entities _ctx)
 {
     this.ctx = _ctx;
 }