private void BuildPager(PagerNav pager)
        {
            if (pager == null)
                return;

            var intPages = Convert.ToInt32(Math.Ceiling(_rowCount/(double) _pageSize));

            string[] @params;
            if (Request.Params["afsort"] != null)
                @params = new[]
                              {
                                  "afgt=" + Request.Params["afgt"], "afsort=" + Request.Params["afsort"],
                                  "afcol=" + Request.Params["afcol"]
                              };
            else if (Request.Params["ts"] != null)
                @params = new[] {"afgt=" + Request.Params["afgt"], "ts=" + Request.Params["ts"]};
            else
                @params = new[] {"afgt=" + Request.Params["afgt"]};


            pager.PageCount = intPages;
            pager.CurrentPage = PageId;
            pager.TabID = TabId;
            pager.ForumID = ForumId;
            pager.PageText = Utilities.GetSharedResource("[RESX:Page]");
            pager.OfText = Utilities.GetSharedResource("[RESX:PageOf]");
            pager.View = "grid";

            pager.PageMode = Modules.ActiveForums.Controls.PagerNav.Mode.Links;

            if (MainSettings.URLRewriteEnabled)
            {
                if (!(string.IsNullOrEmpty(MainSettings.PrefixURLBase)))
                    pager.BaseURL = "/" + MainSettings.PrefixURLBase;

                if (!(string.IsNullOrEmpty(MainSettings.PrefixURLOther)))
                    pager.BaseURL += "/" + MainSettings.PrefixURLOther;

                pager.BaseURL += "/" + Request.Params["afgt"] + "/";
            }

            pager.Params = @params;
        }
        private void BuildPager(PagerNav pager)
        {
            var intPages = Convert.ToInt32(Math.Ceiling(_rowCount / (double)_pageSize));

            pager.PageCount = intPages;
            pager.CurrentPage = PageId;
            pager.TabID = TabId;
            pager.ForumID = ForumId;
            pager.PageText = Utilities.GetSharedResource("[RESX:Page]");
            pager.OfText = Utilities.GetSharedResource("[RESX:PageOf]");
            pager.View = "search";
            pager.PageMode = PagerNav.Mode.Links;

            pager.Params = Parameters.ToArray();
        }