예제 #1
0
 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"];
     }
 }
예제 #2
0
        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);
        }
예제 #3
0
 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();
 }
예제 #4
0
        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);
        }
예제 #5
0
 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);
     }
 }
예제 #6
0
        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;
                }
            }
        }
예제 #7
0
 protected void Page_Load(object sender, EventArgs e)
 {
     aC = new AuthenticationControler();
 }