コード例 #1
0
        /// <summary>
        /// 取得附縮圖的網頁內容清單
        /// </summary>
        public Article_GetListWithThumb(HttpContext context)
            : base(context)
        {
            c = new OtherArticlePageCommon(context, null);
            c.InitialLoggerOfUI(this.GetType());

            artPub = new ArticlePublisherLogic();
        }
コード例 #2
0
    protected void Page_PreInit(object sender, EventArgs e)
    {
        c = new OtherArticlePageCommon(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;
    }
コード例 #3
0
    protected void Page_PreInit(object sender, EventArgs e)
    {
        c = new OtherArticlePageCommon(this.Context, this.ViewState);
        c.InitialLoggerOfUI(this.GetType());

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

        articleData = c.GetArticleData();
        articleData.ArticleSubject = "";
        artPub                    = new ArticlePublisherLogic(null);
        masterSettings            = (IMasterArticleSettings)this.Master;
        masterSettings.IsHomePage = true;
        masterSettings.CustomBannerSubjectHtml = "<h2>We Are Creative People<span></span></h2><h1>Display Creative Studio</h1>";
    }