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

            sesion = (alumno)Session["usuario"];
            cargarDatos(sesion);
        }
예제 #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);
 }
예제 #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);
 }
예제 #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();
        }
예제 #5
0
 public ExamenService(PW3Entities _ctx)
 {
     this.ctx = _ctx;
 }
예제 #6
0
 public ProfesorService(PW3Entities _ctx)
 {
     this.ctx = _ctx;
 }
예제 #7
0
 public CursoService(PW3Entities _ctx)
 {
     this.ctx = _ctx;
 }
예제 #8
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ctx = new PW3Entities();
     es  = new ExamenService(ctx);
     contenedorPreguntas.InnerHtml = es.getHTMLPreguntas(cantidad);
 }
예제 #9
0
 public AlumnoService(PW3Entities _ctx)
 {
     this.ctx = _ctx;
 }