private void LoadGuestDetailsEntryControl() { ucGuestDetailsEntryControl = (GuestDetailsEntryControl)LoadControl(strGuestDetailsEntryControlPath); ucGuestDetailsEntryControl.ID = "GuestDetailsEntryControl"; phGuestDetailsEntryControl.Controls.Clear(); phGuestDetailsEntryControl.Controls.Add(ucGuestDetailsEntryControl); ucGuestDetailsEntryControl.GuestDetailsCompleted += ucGuestDetailsEntryControl_GuestDetailsCompleted; return; }
private void LoadGuestDetailsEntryControl() { string strGuestDetailsEntryControlPath = ConfigurationManager.AppSettings["GuestDetailsEntryControl.ascx"]; ucGuestDetailsEntryControl = (GuestDetailsEntryControl)LoadControl(strGuestDetailsEntryControlPath); phGuestDetailsEntryControl.Controls.Clear(); phGuestDetailsEntryControl.Controls.Add(ucGuestDetailsEntryControl); ucGuestDetailsEntryControl.PaymentGatewayPreSelectCompleted += new GuestDetailsEntryControl.PaymentGatewayPreSelectCompletedEvent(this.PaymentGatewayPreSelectCompleted); ucGuestDetailsEntryControl.GuestDetailsCompleted += new GuestDetailsEntryControl.GuestDetailsCompletedEvent(this.GuestDetailsCompleted); return; }