Hi All,
Wondering if you could please help?
I have a dropdown list which is populated with a list of hotels. The user can select a hotel from the list in order to book the hotel, however for one of the hotels i would like to render a different booking form (widget). At the moment I have the following
code
BookAHotelTemplate.aspx.cs
var hotelList = cntr.GetAllHotels().Hotels.OrderBy(h => h.DisplayName);
ddHotel.DataSource = hotelsList.Select(r => new KeyValuePair<int, string>(h.HotelId, h.ListDisplayName));
ddHotel.DataTextField = "Value";
ddHotel.DataValueField = "Key";
ddHotel.DataBind();
ddHotel.Items.Insert(0, new ListItem("Please select", ""));
ddHotel.SelectedValue = selectedHotel;
var partyHotels = hotelsList.Where(r => r.PartyHotel).Select(r => r.HotelId);
...
Go to the complete details ...