protected void btnHotelNameSearch_Click(object sender, EventArgs e)
        {
            HotelServiceRef.HotelService pxy = new HotelServiceRef.HotelService();
            HotelServiceRef.Hotel hotel = new HotelServiceRef.Hotel();

            hotel.City = txtHotelCity.Text;
            hotel.Id = Convert.ToInt32(ddlHotelNames.SelectedValue);
            hotel.Name = ddlHotelNames.SelectedItem.Text;
            hotel.State = ddlHotelState.SelectedItem.Text;

            DataSet myDS = pxy.GetRooms(hotel);
            rptHotelResults.DataSource = myDS;
            rptHotelResults.DataBind();
            divHotelResults.Visible = true;
        }
 /// <remarks/>
 public void GetRoomsAsync(Hotel hotel, object userState) {
     if ((this.GetRoomsOperationCompleted == null)) {
         this.GetRoomsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetRoomsOperationCompleted);
     }
     this.InvokeAsync("GetRooms", new object[] {
                 hotel}, this.GetRoomsOperationCompleted, userState);
 }
 /// <remarks/>
 public void GetRoomsAsync(Hotel hotel) {
     this.GetRoomsAsync(hotel, null);
 }
 public System.Data.DataSet GetRooms(Hotel hotel) {
     object[] results = this.Invoke("GetRooms", new object[] {
                 hotel});
     return ((System.Data.DataSet)(results[0]));
 }
Exemple #5
0
 /// <remarks/>
 public void GetRoomsAsync(Hotel hotel)
 {
     this.GetRoomsAsync(hotel, null);
 }