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; }
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>"; }
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; } }
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)); } }