protected void Page_Load(object sender, EventArgs e) { if (!SearchState.ValidateBookingPageParameters(Request.Params)) { Response.Redirect("Default.aspx"); } State = new SearchState("Booking", Request.Params, new HotelBookingDataContextExt()); HotelImage.ImageUrl = State.Hotel.PrimaryPicture.Url; HotelSummaryControl.hotel = State.Hotel; RoomFeaturesDataView.DataSource = State.Room.Room_Features; RoomFeaturesDataView.DataBind(); BindPriceRepeater(); }
protected void Page_Load(object sender, EventArgs e) { HotelSummaryControl.hotel = State.Hotel; DescriptionLabel.Text = State.Hotel.Description; HotelPicturesImageSlider.DataSource = State.Hotel.Pictures; HotelPicturesImageSlider.DataBind(); ReviewsDataView.DataSource = State.Hotel.Reviews; ReviewsDataView.DataBind(); HotelFeaturesDataView.DataSource = State.Hotel.Hotel_Features.Take(6); HotelFeaturesDataView.DataBind(); RoomFeaturesDataView.DataSource = State.Hotel.Rooms[0].Room_Features; RoomFeaturesDataView.DataBind(); HotelLocationDataView.DataSource = DataProvider.GetDefaultHotelLocations(); HotelLocationDataView.DataBind(); }