示例#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);
        }
 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();
 }