protected void CancelChanges_Clicked(object sender, EventArgs e) { if (PopupExtender != null) { PopupExtender.ClosePopup(); } }
private void ClosePopup() { if (PopupExtender != null) { PopupExtender.ClosePopup(); } }
protected void ContinueChanges_Clicked(object sender, EventArgs e) { UpdateViewChanges(); // close popup if (WorkedUponAddressControl == null || WorkedUponAddressControl.ErrorList == null || WorkedUponAddressControl.ErrorList.Count.Equals(0) && (!HLConfigManager.Configurations.AddressingConfiguration.HasCustomErrorExpression || (HLConfigManager.Configurations.AddressingConfiguration.HasCustomErrorExpression && Page.IsValid))) { if (blErrors.Items.Count.Equals(0)) { if (PopupExtender != null) { PopupExtender.ClosePopup(); ViewState[POPUPSHOWN] = null; ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "body_overflow_remove", "$('body').css('overflow', 'visible');", true); } } } if (SessionInfo != null && btnContinue != null && btnContinue.Text == "Continuar") { SessionInfo.IsVenuzulaShipping = false; } }
protected void OnCancel(object sender, EventArgs e) { pnlPrintThisPage.Style["display"] = "none"; if (this.PopupExtender != null) { PopupExtender.ClosePopup(); } }
protected void OnPrintPage(object sender, EventArgs e) { upPrintThisPage.Update(); pnlPrintThisPage.Style["display"] = "none"; if (this.PopupExtender != null) { PopupExtender.ClosePopup(); } }
protected void ContinueChanges_Clicked(object sender, EventArgs e) { lblErrors.Text = ""; if (SourceCommand.Mode == PickupCommandType.DELETE) { try { if (WorkedUponDeliveryOptionId == 0) { int value = 0; int.TryParse(Session["IDToDelete"].ToString(), out value); WorkedUponDeliveryOptionId = value; } } catch { WorkedUponDeliveryOptionId = int.Parse(Session["IDToDelete"].ToString()); } int returnId = (Page as ProductsBase).GetShippingProvider().DeletePickupLocationsPreferences ((Page as ProductsBase).DistributorID, WorkedUponDeliveryOptionId, (Page as ProductsBase).CountryCode ); string cacheKey = getPickupLocationPreferenceKey((Page as ProductsBase).DistributorID, (Page as ProductsBase).CountryCode); if (HttpRuntime.Cache[cacheKey] != null) { HttpRuntime.Cache.Remove(cacheKey); } OnPickupPreferenceDeleted(this, new DeliveryOptionEventArgs(WorkedUponDeliveryOptionId, "PickupFromCourier")); //popup_AddDeletePickupControl.Hide(); } else { UpdateViewChanges(); } string Errormsg = lblErrors.Text; if (lblErrors.Text.Equals(String.Empty)) { if (PopupExtender != null) { PopupExtender.ClosePopup(); } } else { PopulatePickupInfoDataList(); lblErrors.Text = Errormsg; } }
protected void CancelChanges_Clicked(object sender, EventArgs e) { //popup_AddEditShippingControl.Hide(); //OnCommandCancelled(this, null); if (PopupExtender != null) { PopupExtender.ClosePopup(); OnShippingAddressPopupCancelled(sender, e); ViewState[POPUPSHOWN] = null; ScriptManager.RegisterClientScriptBlock(Page, typeof(Page), "body_overflow_remove", "$('body').css('overflow', 'visible');", true); } }