protected void Page_Load(object sender, EventArgs e) { _userDao = new UserDao(); _reservationDAO = new ReservationDAO(); if (!IsPostBack) { ReservationGrid.DataSource = _reservationDAO.ReadAll(Status.Reserved); ReservationGrid.DataBind(); Name.Text = _userDao.GetUserById(int.Parse(Context.User.Identity.Name)).FirstName; } }