protected void rbSuat_SelectedIndexChanged(object sender, EventArgs e) { rbKhanDai.DataSource = DAOKeHoachVe.LoadKhanDai(Request.QueryString["phim"], cPickDate.SelectedDate, rbSuat.SelectedValue, rblRap.SelectedValue); rbKhanDai.DataTextField = "khanDaiID"; rbKhanDai.DataValueField = "khanDaiID"; rbKhanDai.DataBind(); }
protected void BinSpecialDayToCalendar() { foreach (DataRow dr in DAOKeHoachVe.LoadDayPlayFilm(Request.QueryString["phim"], rblRap.SelectedValue).Rows) { DaysPlay.Add(Convert.ToDateTime(dr["ngaychieu"].ToString())); } }
protected void LoadKhungGio(string phim, DateTime ngay, string rap) { rbSuat.DataSource = DAOKeHoachVe.LoadSuatChieu(phim, ngay, rap); rbSuat.DataTextField = "suatchieu"; rbSuat.DataValueField = "suatchieu"; rbSuat.DataBind(); int a = rbSuat.Items.Count; }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { rptPaging.DataSource = DAOKeHoachVe.LoadFilmPlayingInFuture(); rptPaging.DataBind(); if (Session["accSession"] == null) { btnAccount.ImageUrl = "~/images/unknowPerson.PNG"; } else { btnAccount.ImageUrl = "~/images/person.PNG"; } } }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["accSession"] == null) { btnAccount.ImageUrl = "~/images/unknowPerson.PNG"; } else { btnAccount.ImageUrl = "~/images/person.PNG"; } rap = "%"; phim = Request.QueryString["phim"]; #region bin list rap rblRap.DataSource = DAOKeHoachVe.LoadRapByPhim(phim); rblRap.DataTextField = "tenRap"; rblRap.DataValueField = "tenRap"; rblRap.DataBind(); Session["lstGheDangChon"] = new Dictionary <string, int>(); #endregion } rptPaging.DataSource = DAOphim.GetInfoByTitle(Request.QueryString["phim"]); rptPaging.DataBind(); BinSpecialDayToCalendar(); lstGheDangChon = Session["lstGheDangChon"] as Dictionary <string, int>; try { HienGiaVe(); } catch (Exception ex) { } if (IsPostBack) { ClientScript.RegisterStartupScript(this.GetType(), "hash", "location.hash = '#rblRap';", true); } }