private void regionRepeater() { if (region.SelectedItem.Value == "Region") { HotelBook hotel = new HotelBook(); hotelList = hotel.GetAllHotel(); RepeatHotel.DataSource = hotelList; RepeatHotel.DataBind(); } else if (region.SelectedItem.Value == "Central") { HotelBook hotel = new HotelBook(); hotelList = hotel.getCentralHotels(); RepeatHotel.DataSource = hotelList; RepeatHotel.DataBind(); } else if (region.SelectedItem.Value == "North") { HotelBook hotel = new HotelBook(); hotelList = hotel.getNorthHotels(); RepeatHotel.DataSource = hotelList; RepeatHotel.DataBind(); } else if (region.SelectedItem.Value == "South") { HotelBook hotel = new HotelBook(); hotelList = hotel.getSouthHotels(); RepeatHotel.DataSource = hotelList; RepeatHotel.DataBind(); } else if (region.SelectedItem.Value == "West") { HotelBook hotel = new HotelBook(); hotelList = hotel.getWestHotels(); RepeatHotel.DataSource = hotelList; RepeatHotel.DataBind(); } else if (region.SelectedItem.Value == "East") { HotelBook hotel = new HotelBook(); hotelList = hotel.getEastHotels(); RepeatHotel.DataSource = hotelList; RepeatHotel.DataBind(); } }
private void hotelRepeater() { HotelBook hotel = new HotelBook(); hotelList = hotel.GetAllHotel(); repeatHotel.DataSource = hotelList; repeatHotel.DataBind(); }