protected void Page_Load(object sender, EventArgs e) { aC = new AuthenticationControler(); if (Session["Log"] != null && Session["LogOK"] != null) { HtmlAnchor link = (HtmlAnchor)this.Master.FindControl("Log"); link.InnerText = (String)Session["Log"]; link.HRef = (String)Session["LogOK"]; } }
protected void Page_Load(object sender, EventArgs e) { aC = new AuthenticationControler(); int id = int.Parse(Request.QueryString["titre"]); if (Session["Log"] != null && Session["LogOK"] != null) { HtmlAnchor link = (HtmlAnchor)this.Master.FindControl("Log"); link.InnerText = (String)Session["Log"]; link.HRef = (String)Session["LogOK"]; } film = aC.GetFilm(id); }
protected void Page_Load(object sender, EventArgs e) { aC = new AuthenticationControler(); listStatistiques = new List <StatistiquesDTO>(); actor = new ActeurDTO(); film = new FilmDTO(); if (Session["Log"] != null && Session["LogOK"] != null) { HtmlAnchor link = (HtmlAnchor)this.Master.FindControl("Log"); link.InnerText = (String)Session["Log"]; link.HRef = (String)Session["LogOK"]; } listStatistiques = aC.getStatistiques(); }
protected void Page_Load(object sender, EventArgs e) { listFilms = new List <FilmDTO>(); aC = new AuthenticationControler(); BLLSmartVideo bllSmart = new BLLSmartVideo(); if (Session["Log"] != null && Session["LogOK"] != null) { HtmlAnchor link = (HtmlAnchor)this.Master.FindControl("Log"); link.InnerText = (String)Session["Log"]; link.HRef = (String)Session["LogOK"]; } if (Session["Index"] != null) { index = (int)Session["Index"]; } listFilms = aC.LoadFilm(index, 5); }
protected void Page_Load(object sender, EventArgs e) { aC = new AuthenticationControler(); listLocations = new List <LocationDTO>(); film = new FilmDTO(); if (Session["Log"] != null && Session["LogOK"] != null) { HtmlAnchor link = (HtmlAnchor)this.Master.FindControl("Log"); link.InnerText = (String)Session["Log"]; link.HRef = (String)Session["LogOK"]; if (Session["Log"].Equals("Login")) { Server.Transfer("Default.aspx", true); } listLocations = aC.GetLocation((String)Session["Log"]); } else { Server.Transfer("Default.aspx", true); } }
protected void Page_Load(object sender, EventArgs e) { aC = new AuthenticationControler(); if (!IsPostBack) { if (Session["Log"] != null && Session["LogOK"] != null) { HtmlAnchor link = (HtmlAnchor)this.Master.FindControl("Log"); link.InnerText = (String)Session["Log"]; link.HRef = (String)Session["LogOK"]; } UtilisateursDTO user = aC.findUser((String)Session["Email"]); if (user != null) { TextBoxEmail.Text = user.Email; TextBoxEmail.ReadOnly = true; TextBoxCarte.Text = user.Carte; TextBoxPseudo.Text = user.Pseudo; TextBoxPassword.Text = user.Password; } } }
protected void Page_Load(object sender, EventArgs e) { aC = new AuthenticationControler(); }