Exemple #1
0
    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;
            }
        }
    }
Exemple #2
0
    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;
        }
    }
Exemple #3
0
    private void ShowHideContent()
    {
        GetCodePlaceHolder.Visible =
            PublishersWebsite.ActiveOrPendingWebsiteExists(Member.CurrentId);

        if (!GetCodePlaceHolder.Visible)
        {
            GetCodeUnavailable.Visible = true;
            GetCodeUnavailable.Reason  = U6000.NOWEBSITES;
        }
        else
        {
            GetCodeUnavailable.Visible = false;
        }
    }