Beispiel #1
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            int i = (int.Parse(LabelPage.Text)) - 1;

            if (i < 1)
            {
                i = 1;
            }
            LabelPage.Text    = i.ToString();
            LabelPagebis.Text = i.ToString();
            string var = DropDownList1.SelectedValue;
            int    tmp = int.Parse(var);

            if ((index - tmp) >= 0)
            {
                index = index - tmp;
            }
            else
            {
                index = 0;
            }

            listFilms        = aC.LoadFilm(index, tmp);
            Session["Index"] = index;
        }
Beispiel #2
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);
        }