コード例 #1
0
ファイル: Login.aspx.cs プロジェクト: ThibaultJu/SmartVideo
 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
ファイル: Default.aspx.cs プロジェクト: ThibaultJu/SmartVideo
        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();
 }