private void LoadDataFromQueryRequest(string scheduleID, int roomID)
        {
            ScheduleDTO sDTO       = sDAO.GetScheduleDTO((List <ScheduleDTO>)Session["ScheduleList"], scheduleID);
            string      movieID    = sDTO.MovieID;
            string      movieTitle = mDAO.getMovieDTOByMovieID((List <MovieDTO>)Session["MovieList"], movieID).MovieTitle;

            EnableSelect();
            roomTitle.Text = "Room " + roomID;

            dlMovieList.SelectedValue = movieTitle;

            dlScheduleID.Items.Clear();
            dlScheduleList.Items.Clear();

            dlScheduleList.Items.Add("--Select a schedule--");
            List <ScheduleDTO> scheduleList = sDAO.getSpecificMovieSchedule((List <ScheduleDTO>)Session["ScheduleList"], movieID);

            LoadScheduleToDropDownList(scheduleList);
            dlScheduleList.Enabled       = true;
            dlScheduleList.SelectedValue = sDTO.ScheduleDate + " at Room No. " + sDTO.RoomID;


            dlTicketNum.Items.Clear();

            List <string> bookedSeatList = odDAO.GetAllSeats(scheduleID);
            int           bookedSeat;

            if (bookedSeatList == null)
            {
                bookedSeat = 0;
            }
            else
            {
                bookedSeat = bookedSeatList.Count;
            }
            int remainingSeat = rDAO.getRoom((List <RoomDTO>)Session["RoomList"], roomID).NumberOfSeat - bookedSeat;

            if (remainingSeat >= 10)
            {
                LoadAvailableSeat(10);
            }
            else
            {
                LoadAvailableSeat(remainingSeat);
            }
            dlTicketNum.Enabled                = true;
            lblPriceTicket.Text                = "Per Ticket costs " + sDTO.PriceOfTicket + " $";
            lblPriceTicket.Visible             = true;
            lblTicketNoti.Visible              = true;
            Session["SelectionAvailable"]      = 1;
            Session["SelectedSeats"]           = new List <string>();
            Session["CurrentPage"]             = "BookTicketPage.aspx";
            Session["CurrentSelectdlMovie"]    = dlMovieList.SelectedValue;
            Session["CurrentSelectdlSchedule"] = sDTO.ScheduleID;
            UpdateTicketMessage();

            List <Button> seaList = loadSeatList();

            MarkBookedSeats(bookedSeatList, seaList);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                MemberDTO mDTO = (MemberDTO)Session["MEMBER_USER"];
                lblUsername.Text = mDTO.FirstName + " " + mDTO.LastName;
                lblPhone.Text    = mDTO.PhoneNum;
                lblEmail.Text    = mDTO.Email;

                lblMovie.Text = Session["CurrentSelectdlMovie"].ToString();
                string      selectedSchedule = Session["CurrentSelectdlSchedule"].ToString();
                ScheduleDTO sDTO             = sDAO.GetScheduleDTO((List <ScheduleDTO>)Session["ScheduleList"], selectedSchedule);
                lblSchedule.Text = sDTO.ScheduleDate + " at Room No. " + sDTO.RoomID;

                List <string> bookedSeatList = (List <string>)Session["SelectedSeats"];
                lblBookedSeat.Text     = bookedSeatList.Count + "";
                lblBookedSeatList.Text = ToStringBookedSeatList(bookedSeatList);

                lblTicketPrice.Text = sDTO.PriceOfTicket + " $";
                total = bookedSeatList.Count * sDTO.PriceOfTicket;
                lblTotalPrice.Text = total + " $";
            }
        }