protected void Page_Init(object sender, EventArgs e)
    {
        c = new FrontendPageCommon(this.Context, this.ViewState);
        c.InitialLoggerOfUI(this.GetType());

        artPub      = new ArticlePublisherLogic(null);
        basePage    = (FrontendBasePage)this.Page;
        articleData = basePage.GetArticleData();
    }
Beispiel #2
0
    private bool isLazyLoadingMode = true;   //滾動加載模式

    protected void Page_Init(object sender, EventArgs e)
    {
        c = new FrontendPageCommon(this.Context, this.ViewState);
        c.InitialLoggerOfUI(this.GetType());

        artPub         = new ArticlePublisherLogic(null);
        basePage       = (FrontendBasePage)this.Page;
        articleData    = basePage.GetArticleData();
        masterSettings = (IMasterArticleSettings)this.Page.Master;

        ucDataPager.MaxItemCountOfPage            = 12;
        ucDataPager.MaxDisplayCountInPageCodeArea = 5;
        ucDataPager.LinkUrlToReload = string.Concat(Request.AppRelativeCurrentExecutionFilePath, "?", Request.QueryString);
        ucDataPager.Initialize(0, 0);

        if (articleData.IsPreviewMode)
        {
            isLazyLoadingMode = false;
        }
    }