Exemplo n.º 1
0
        protected void Page_Load(object sender, System.EventArgs e)
        {
            if (BaseHasError)
            {
                return;
            }

            int pageIndex = _Request.Get <int>("page", Method.Get, 1) - 1;
            int pageSize  = AllSettings.Current.BbsSettings.ThreadsPageSize;
            int totalThreads;// = Forum.TotalThreads;

            threadList = PostBOV5.Instance.GetThreads(Forum.ForumID, ForumSetting.DefaultThreadSortField, null, null, true, pageIndex + 1, pageSize, _Request.IsSpider, out totalThreads);

            PostBOV5.Instance.ProcessKeyword(threadList, ProcessKeywordMode.TryUpdateKeyword);

            SetPager("ThreadListPager", BbsUrlHelper.GetArchiverForumUrlForPager(Forum.CodeName), pageIndex + 1, pageSize, totalThreads);

            AddNavigationItem(Forum.ForumName);
        }