Ejemplo n.º 1
0
        /// <summary>
        /// 取得搜尋關鍵字
        /// </summary>
        public Keyword_GetList(HttpContext context)
            : base(context)
        {
            c = new FrontendPageCommon(context, null);
            c.InitialLoggerOfUI(this.GetType());

            artPub = new ArticlePublisherLogic();
        }
Ejemplo n.º 2
0
    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();
    }
Ejemplo n.º 3
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;
        }
    }
Ejemplo n.º 4
0
    protected void Page_PreInit(object sender, EventArgs e)
    {
        c = new FrontendPageCommon(this.Context, this.ViewState);
        c.InitialLoggerOfUI(this.GetType());

        if (!c.RetrieveArticleIdAndData())
        {
            Response.Redirect(c.ERROR_PAGE);
        }

        articleData    = c.GetArticleData();
        artPub         = new ArticlePublisherLogic(null);
        masterSettings = (IMasterArticleSettings)this.Master;
        masterSettings.ShowReturnToListButton = true;

        if (articleData.ParentId == Guid.Empty)
        {
            masterSettings.SetReturnToListUrl(string.Format("Index.aspx?l={0}", c.qsLangNo));
        }
        else
        {
            masterSettings.SetReturnToListUrl(string.Format("Article.aspx?artid={0}&l={1}", articleData.ParentId, c.qsLangNo));
        }
    }
Ejemplo n.º 5
0
 protected void Page_PreInit(object sender, EventArgs e)
 {
     c = new FrontendPageCommon(this.Context, this.ViewState);
     c.InitialLoggerOfUI(this.GetType());
 }