private void setupExhibitorConfirmation(ExhibitorConfirmationPacket ep) { divExhibitorConfirmation.Visible = true; using (var api = GetServiceAPIProxy()) { if (ep.BoothPreferences != null && ep.BoothPreferences.Count > 0) { divExhibitorConfirmation_BoothPreferences.Visible = true; var sb = new StringBuilder(); foreach (var b in ep.BoothPreferences) { sb.AppendFormat("{0}, ", api.GetName(b).ResultValue); } lblExhbitor_BoothPreferences.Text = sb.ToString().Trim().TrimEnd(','); } } if (!string.IsNullOrWhiteSpace(ep.ConfirmationInstructions)) { divExhibitorConfirmation_ConfirmationInstructions.Visible = true; lblExhibitorConfirmationInstructions.Text = ep.ConfirmationInstructions; } if (!string.IsNullOrWhiteSpace(ep.SpecialRequests)) { lblExhibitorSpecialRequests.Text = ep.SpecialRequests; } }
protected void wzBoothType_Finish(object sender, WizardNavigationEventArgs e) { var booths = new List <string>(); foreach (RepeaterItem ri in rptChoices.Items) { var ddlChoice = (DropDownList)ri.FindControl("ddlChoice"); if (string.IsNullOrWhiteSpace(ddlChoice.SelectedValue)) { continue; } booths.Add(ddlChoice.SelectedValue); } if (booths.Count == 0) { cvAtLeastOneBooth.IsValid = false; return; } var o = unbindOrder(booths); var p = new ExhibitorConfirmationPacket { SpecialRequests = tbSpecialRequest.Text, ConfirmationInstructions = targetWindow.RegistrationConfirmationInstructions, BoothPreferences = booths }; MultiStepWizards.PlaceAnOrder.OrderConfirmationPacket = p; MultiStepWizards.PlaceAnOrder.OrderCompleteUrl = "/exhibits/ViewShow.aspx?contextID=" + targetShow.ID; MultiStepWizards.PlaceAnOrder.InitiateOrderProcess(o); }
protected void btnContinue_Click(object sender, EventArgs e) { if (!IsValid) { return; } var boothProductsToPurchase = new List <string>(); foreach (RadListBoxItem item in dlbCategories.Destination.Items) { boothProductsToPurchase.Add(item.Value); } if (boothProductsToPurchase.Count == 0) { cvAtLeastOneBooth.IsValid = false; return; } var o = unbindOrder(boothProductsToPurchase); var p = new ExhibitorConfirmationPacket { SpecialRequests = tbSpecialRequest.Text, ConfirmationInstructions = targetWindow.RegistrationConfirmationInstructions }; MultiStepWizards.PlaceAnOrder.OrderConfirmationPacket = p; MultiStepWizards.PlaceAnOrder.OrderCompleteUrl = "/exhibits/ViewShow.aspx?contextID=" + targetShow.ID; MultiStepWizards.PlaceAnOrder.InitiateOrderProcess(o); }