protected void Page_Load(object sender, EventArgs e) { String[] info = Request.FilePath.Split('/'); if (info.Length < 3) { Response.Redirect("~/"); } id = info[info.Length - 1]; time = info[info.Length - 2]; date = info[info.Length - 3]; List <string> show = MySQLServer.get_show_information(id, date + " " + time + ":00:00"); if (show.Count == 0) { Response.Redirect("~/"); } session_id = show[0]; title = show[1]; cost = show[2]; film_cost.Text = "<h3 style=\"header-text\">Film cost: " + cost + "</h3>"; film.Text = "<h1 style=\"header-text\">" + title + "</h1>"; session_date.Text = "<h3>Date: " + date + "</h3>"; session_time.Text = "<h3>Time: " + time + ":00</h3>"; seats.Text = ""; loadSeats(); if (Request.Cookies["login"] != null) { move.Text = "<input class=\"sub-button\" type=\"submit\" value=\"Book\" style=\"width: 290px\" runat=\"server\" onclick=\"get()\" />"; } else { move.Text = "<p class=\"lower-text\">New to Cinema?<a href = \"../../../Account/Register\"> Create an account.</a><p/>"; } }