private void Reload() { DataObjectList <DataObjectForumTopicItem> itemList = DataObjects.Load <DataObjectForumTopicItem>(new QuickParameters { RelationParams = new RelationParams { ParentObjectID = forumTopic.ObjectID, ParentObjectType = Helper.GetObjectTypeNumericID("ForumTopic") }, Udc = udc, PageNumber = currentPage, CurrentObjectID = Request.QueryString["COID"].ToNullableGuid(), PageSize = pageSize, IgnoreCache = true, SortBy = QuickSort.InsertedDate, Direction = QuickSortDirection.Asc }); currentPage = itemList.PageNumber; totalNumberItems = itemList.ItemTotal; FTPAGBOT.InitPager(currentPage, totalNumberItems); FTPAGTOP.InitPager(currentPage, totalNumberItems); RepForumTopic.DataSource = itemList; RepForumTopic.DataBind(); }
private void Reload() { DataObjectList <DataObjectForumTopic> forumTopics = DataObjects.Load <DataObjectForumTopic>(new QuickParameters { RelationParams = new RelationParams { ParentObjectID = forum.ObjectID, ParentObjectType = Helper.GetObjectTypeNumericID("Forum") }, Udc = udc, PageNumber = currentPage, PageSize = pageSize, ShowState = ObjectShowState.Published, IgnoreCache = true }); totalNumberItems = forumTopics.ItemTotal; RepForum.DataSource = forumTopics; RepForum.DataBind(); FTPAGTOP.InitPager(currentPage, totalNumberItems); FTPAGBOT.InitPager(currentPage, totalNumberItems); }