Пример #1
0
 protected void btnRetrieveBooking_Click(object sender, EventArgs e)
 {
     if (IsPostBack)
     {
         lblRetrieveName.Visible         = false;
         lblRetrieveCountry.Visible      = false;
         lblRetrievePhone.Visible        = false;
         lblRetrieveBookingNotes.Visible = false;
         string email = txtRetrieveBookingEmail.Text;
         string id    = txtRetrieveBookingID.Text;
         List <BookingElement> booking = BookingElement.RetrieveBookingDetails(email, id);
         lblRetrieveName.Text            = booking[0].CustomerName;
         lblRetrieveCountry.Text         = booking[0].CustomerCountry;
         lblRetrievePhone.Text           = booking[0].CustomerPhone;
         lblRetrieveBookingNotes.Text    = booking[0].BookingNotes;
         pReservationInformation.Visible = true;
         gvRetrieveBooking.Visible       = true;
         //UpdatePanelRetrieveBooking.Update();
     }
     UpdatePanelRetrieveBooking.Update();
 }
Пример #2
0
 protected void btnRetrieveBooking_Click(object sender, EventArgs e)
 {
     if (IsPostBack)
     {
         lblRetrieveName.Visible         = false;
         lblRetrieveCountry.Visible      = false;
         lblRetrievePhone.Visible        = false;
         lblRetrieveBookingNotes.Visible = false;
         string email = txtRetrieveBookingEmail.Text;
         string id    = txtRetrieveBookingID.Text;
         List <BookingElement> booking = BookingElement.RetrieveBookingDetails(email, id);
         lblRetrieveName.Text            = booking[0].CustomerName;
         lblRetrieveCountry.Text         = booking[0].CustomerCountry;
         lblRetrievePhone.Text           = booking[0].CustomerPhone;
         lblRetrieveBookingNotes.Text    = booking[0].BookingNotes;
         lblRetrieveName.Visible         = true;
         lblRetrieveCountry.Visible      = true;
         lblRetrievePhone.Visible        = true;
         lblRetrieveBookingNotes.Visible = true;
         gvRetrieveBooking.DataSource    = dsRetrieveBooking.Select();
         gvRetrieveBooking.DataBind();
     }
 }