protected void Page_Load(object sender, EventArgs e) { PW3Entities ctx = new PW3Entities(); sesion = (alumno)Session["usuario"]; cargarDatos(sesion); }
protected void Page_Load(object sender, EventArgs e) { p = (profesor)Session["usuario"]; ctx = new PW3Entities(); ps = new ProfesorService(ctx); misCursos.InnerHtml = ps.getTablaCursos(p); }
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); }
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(); }
public ExamenService(PW3Entities _ctx) { this.ctx = _ctx; }
public ProfesorService(PW3Entities _ctx) { this.ctx = _ctx; }
public CursoService(PW3Entities _ctx) { this.ctx = _ctx; }
protected void Page_Load(object sender, EventArgs e) { ctx = new PW3Entities(); es = new ExamenService(ctx); contenedorPreguntas.InnerHtml = es.getHTMLPreguntas(cantidad); }
public AlumnoService(PW3Entities _ctx) { this.ctx = _ctx; }