protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Session["account"] != null) { lb_message.Text = "Your flight you booked"; Account account = (Account)Session["account"]; gridViewTicketBooked.DataSource = flightDAO.GetAllFlightBookedOfUser(account.Id); gridViewTicketBooked.DataBind(); } else { Response.Redirect("Entry.aspx"); } } }