protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { AccessManager.RedirectIfDisabled(AppSettings.TitanFeatures.PublishersRoleEnabled && AppSettings.TitanFeatures.PublishBannersEnabled && Member.CurrentInCache.IsPublisher); ErrorMessagePanel.Visible = false; SuccessMessagePanel.Visible = false; GetCodePlaceHolder.Visible = PublishersWebsite.ActiveOrPendingWebsiteExists(Member.CurrentId) && TableHelper.RowExists(ExternalBannerAdvertDimensions.TableName, TableHelper.MakeDictionary("Status", (int)UniversalStatus.Active)); if (!GetCodePlaceHolder.Visible) { GetCodeUnavailable.Visible = true; GetCodeUnavailable.HeaderText = U6003.PUBLISHBANNERSUNAVAILABLEHEADER; GetCodeUnavailable.Reason = U6003.PUBLISHBANNERSUNAVAILABLEREASON; } else { GetCodeUnavailable.Visible = false; } } }
protected void GetCodeView_Activate(object sender, EventArgs e) { GetCodePlaceHolder.Visible = PublishersWebsite.ActiveOrPendingWebsiteExists(Member.CurrentId); if (!GetCodePlaceHolder.Visible) { GetCodeUnavailable.Visible = true; GetCodeUnavailable.Reason = U6000.NOWEBSITES; } else { GetCodeUnavailable.Visible = false; } }
private void ShowHideContent() { GetCodePlaceHolder.Visible = PublishersWebsite.ActiveOrPendingWebsiteExists(Member.CurrentId); if (!GetCodePlaceHolder.Visible) { GetCodeUnavailable.Visible = true; GetCodeUnavailable.Reason = U6000.NOWEBSITES; } else { GetCodeUnavailable.Visible = false; } }