Esempio n. 1
0
        private void filterRepeater()
        {
            int getMinPrice = Convert.ToInt32(minpriceTB.Text);

            int getMaxPrice = Convert.ToInt32(maxPriceTB.Text);

            HotelBook hotel = new HotelBook(getMinPrice, getMaxPrice);

            hotelList = hotel.getHotelsByPrice();

            RepeatHotel.DataSource = hotelList;
            RepeatHotel.DataBind();
        }
Esempio n. 2
0
        private void filterRepeater()
        {
            string checkMinPrice = minpriceTB.Text;

            string checkMaxPrice = maxPriceTB.Text;

            if (checkMinPrice == "" || checkMaxPrice == "")
            {
            }
            else
            {
                int getMinPrice = Convert.ToInt32(minpriceTB.Text);

                int getMaxPrice = Convert.ToInt32(maxPriceTB.Text);

                HotelBook hotel = new HotelBook(getMinPrice, getMaxPrice);
                hotelList = hotel.getHotelsByPrice();

                RepeatHotel.DataSource = hotelList;
                RepeatHotel.DataBind();
            }
        }